pub enum CallbackError<T> {
AlreadySignaled(T),
Other(Error),
}Expand description
Error type for fence callback registration.
Generic over T so that AlreadySignaled can return the callback to the
caller, allowing it to reclaim any resources owned by the callback (e.g.,
a fence handle that needs to be signaled).
Variants§
AlreadySignaled(T)
The fence was already signaled. The callback is returned so the caller can extract owned resources without losing them.
Other(Error)
Some other error occurred during registration.
Trait Implementations§
Source§impl<T: Debug> Debug for CallbackError<T>
impl<T: Debug> Debug for CallbackError<T>
Source§impl<T> From<AllocError> for CallbackError<T>
impl<T> From<AllocError> for CallbackError<T>
Source§fn from(e: AllocError) -> Self
fn from(e: AllocError) -> Self
Converts to this type from the input type.
Source§impl<T> From<CallbackError<T>> for Error
impl<T> From<CallbackError<T>> for Error
Source§fn from(err: CallbackError<T>) -> Self
fn from(err: CallbackError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for CallbackError<T>where
T: Freeze,
impl<T> RefUnwindSafe for CallbackError<T>where
T: RefUnwindSafe,
impl<T> Send for CallbackError<T>where
T: Send,
impl<T> Sync for CallbackError<T>where
T: Sync,
impl<T> Unpin for CallbackError<T>where
T: Unpin,
impl<T> UnsafeUnpin for CallbackError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CallbackError<T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.