pub enum AllocateError {
InvalidHeader,
NonEmptyIndex,
OutOfMemory,
}Expand description
Possible error conditions when attempting to allocate a blob ID.
Variants§
InvalidHeader
The header was invalid (purportedly either with indices extending past the blob head offset or the blob head offset extending past the length of the buffer). Suggests invalid initialization or corruption.
NonEmptyIndex
The would-be bookkeeping index slot for the new allocated ID is non-empty (i.e., not in the initialized state). Suggests corruption.
OutOfMemory
Out Of Memory: there is insufficient memory available for the requested allocation.
(What is available can be queried with remaining_bytes()).
Trait Implementations§
Source§impl Clone for AllocateError
impl Clone for AllocateError
Source§fn clone(&self) -> AllocateError
fn clone(&self) -> AllocateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllocateError
Source§impl Debug for AllocateError
impl Debug for AllocateError
impl Eq for AllocateError
Source§impl From<AllocateError> for Status
impl From<AllocateError> for Status
Source§fn from(err: AllocateError) -> Self
fn from(err: AllocateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AllocateError
impl PartialEq for AllocateError
impl StructuralPartialEq for AllocateError
Auto Trait Implementations§
impl Freeze for AllocateError
impl RefUnwindSafe for AllocateError
impl Send for AllocateError
impl Sync for AllocateError
impl Unpin for AllocateError
impl UnsafeUnpin for AllocateError
impl UnwindSafe for AllocateError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)