pub enum AllocErrorKind {
OutOfMemory,
InvalidArgument,
PermissionDenied,
HugePagesUnavailable,
MlockFailed,
Unknown,
}Expand description
Classification of allocation errors.
Variants§
OutOfMemory
Out of memory
InvalidArgument
Invalid size or alignment
PermissionDenied
Permission denied
Huge pages not available
MlockFailed
Memory lock failed
Unknown
Unknown error
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 Debug for AllocErrorKind
impl Debug for AllocErrorKind
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 UnsafeUnpin 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