[−][src]Struct sgx_tstd::panic::AssertUnwindSafe
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: Debug> Debug for AssertUnwindSafe<T>
[src]
impl<T> Deref for AssertUnwindSafe<T>
[src]
impl<T> DerefMut for AssertUnwindSafe<T>
[src]
impl<R, F: FnOnce() -> R> FnOnce() for AssertUnwindSafe<F>
[src]
type Output = R
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, _args: ()) -> R
[src]
impl<F: Future> Future for AssertUnwindSafe<F>
[src]
type Output = F::Output
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
impl<T> RefUnwindSafe for AssertUnwindSafe<T>
[src]
impl<T> UnwindSafe for AssertUnwindSafe<T>
[src]
Auto Trait Implementations
impl<T> Send for AssertUnwindSafe<T> where
T: Send,
T: Send,
impl<T> Sync for AssertUnwindSafe<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AssertUnwindSafe<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,