pub enum AllocError {
Oom,
Other,
}
Expand description
Allocation error.
Variants§
Oom
The system is Out-of-memory.
Other
Other allocation errors (not out-of-memory).
Race conditions, exhausted file descriptors, etc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllocError
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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