pub enum AllocErrorKind {
Busy,
AllocError(AllocError),
InvalidRequest,
}
Expand description
The reason for the failure to insert.
Variants§
Busy
There is not enough space for the requested allocation.
AllocError(AllocError)
Failure to allocate memory.
InvalidRequest
The insertion request was invalid.
Trait Implementations§
Source§impl Clone for AllocErrorKind
impl Clone for AllocErrorKind
Source§fn clone(&self) -> AllocErrorKind
fn clone(&self) -> AllocErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<AllocErrorKind> for Error
impl From<AllocErrorKind> for Error
Source§fn from(kind: AllocErrorKind) -> Error
fn from(kind: AllocErrorKind) -> Error
Converts to this type from the input type.
Source§impl PartialEq for AllocErrorKind
impl PartialEq for AllocErrorKind
impl Copy for AllocErrorKind
impl Eq for AllocErrorKind
impl StructuralPartialEq for AllocErrorKind
Auto Trait Implementations§
impl Freeze for AllocErrorKind
impl RefUnwindSafe for AllocErrorKind
impl Send for AllocErrorKind
impl Sync for AllocErrorKind
impl Unpin for AllocErrorKind
impl UnwindSafe for AllocErrorKind
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<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more