Enum hv_stampede::AllocOrInitError [−][src]
pub enum AllocOrInitError<E> {
Alloc(AllocErr),
Init(E),
}
Expand description
An error returned from Bump::try_alloc_try_with
.
Variants
Alloc(AllocErr)
Indicates that the initial allocation failed.
Init(E)
Indicates that the initializer failed with the contained error after allocation.
It is possible but not guaranteed that the allocated memory has been released back to the allocator at this point.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<E> RefUnwindSafe for AllocOrInitError<E> where
E: RefUnwindSafe,
impl<E> Send for AllocOrInitError<E> where
E: Send,
impl<E> Sync for AllocOrInitError<E> where
E: Sync,
impl<E> Unpin for AllocOrInitError<E> where
E: Unpin,
impl<E> UnwindSafe for AllocOrInitError<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more