Struct sgx_tstd::panic::AssertUnwindSafe [−][src]
pub struct AssertUnwindSafe<T>(pub T);
A simple wrapper around a type to assert that it is unwind safe.
When using catch_unwind
it may be the case that some of the closed over
variables are not unwind safe. For example if &mut T
is captured the
compiler will generate a warning indicating that it is not unwind safe. It
may not be the case, however, that this is actually a problem due to the
specific usage of catch_unwind
if unwind safety is specifically taken into
account. This wrapper struct is useful for a quick and lightweight
annotation that a variable is indeed unwind safe.
Trait Implementations
impl<T> UnwindSafe for AssertUnwindSafe<T>
[src]
impl<T> UnwindSafe for AssertUnwindSafe<T>
impl<T> RefUnwindSafe for AssertUnwindSafe<T>
[src]
impl<T> RefUnwindSafe for AssertUnwindSafe<T>
impl<T> Deref for AssertUnwindSafe<T>
[src]
impl<T> Deref for AssertUnwindSafe<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for AssertUnwindSafe<T>
[src]
impl<T> DerefMut for AssertUnwindSafe<T>
impl<R, F: FnOnce() -> R> FnOnce<()> for AssertUnwindSafe<F>
[src]
impl<R, F: FnOnce() -> R> FnOnce<()> for AssertUnwindSafe<F>
type Output = R
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, _args: ()) -> R
[src]
extern "rust-call" fn call_once(self, _args: ()) -> R
🔬 This is a nightly-only experimental API. (
fn_traits
)Performs the call operation.
impl<T: Debug> Debug for AssertUnwindSafe<T>
[src]
impl<T: Debug> Debug for AssertUnwindSafe<T>
Auto Trait Implementations
impl<T> Send for AssertUnwindSafe<T> where
T: Send,
impl<T> Send for AssertUnwindSafe<T> where
T: Send,
impl<T> Sync for AssertUnwindSafe<T> where
T: Sync,
impl<T> Sync for AssertUnwindSafe<T> where
T: Sync,