#[repr(u8)]pub enum Cause {
Unknown = 0,
OutOfMemory = 1,
}Expand description
The cause of an error.
Variants§
Unknown = 0
The cause is unknown.
This most commonly means an OSErr occurred, but os_err_reporting is
disabled.
OutOfMemory = 1
The allocator ran out of memory.
This should only be used when the allocator runs out of memory and doesn’t grow. Use
OSErr if the system runs out of memory.
Trait Implementations§
impl Copy for Cause
impl Eq for Cause
impl StructuralPartialEq for Cause
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnwindSafe for Cause
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