pub enum NativeCallbackError<E> {
StaleCallback,
Guest(E),
}Expand description
Failure returned by the host callback dispatch boundary.
Variants§
StaleCallback
The callback token belongs to another realm or guest generation.
Guest(E)
The guest rejected the callback or its execution failed.
Trait Implementations§
Source§impl<E: Clone> Clone for NativeCallbackError<E>
impl<E: Clone> Clone for NativeCallbackError<E>
Source§impl<E: Debug> Debug for NativeCallbackError<E>
impl<E: Debug> Debug for NativeCallbackError<E>
impl<E: Eq> Eq for NativeCallbackError<E>
Source§impl<E: PartialEq> PartialEq for NativeCallbackError<E>
impl<E: PartialEq> PartialEq for NativeCallbackError<E>
impl<E: PartialEq> StructuralPartialEq for NativeCallbackError<E>
Auto Trait Implementations§
impl<E> Forget for NativeCallbackError<E>
impl<E> Freeze for NativeCallbackError<E>where
E: Freeze,
impl<E> Move for NativeCallbackError<E>
impl<E> RefUnwindSafe for NativeCallbackError<E>where
E: RefUnwindSafe,
impl<E> Send for NativeCallbackError<E>where
E: Send,
impl<E> Sync for NativeCallbackError<E>where
E: Sync,
impl<E> Unpin for NativeCallbackError<E>where
E: Unpin,
impl<E> UnsafeUnpin for NativeCallbackError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for NativeCallbackError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert