#[repr(i32)]pub enum Status {
Show 35 variants
NoError = 0,
ErrInternal = -1,
ErrNotSupported = -2,
ErrNoResources = -3,
ErrNoMemory = -4,
ErrCallFailed = -5,
ErrInterruptedRetry = -6,
ErrInvalidArgs = -10,
ErrBadHandle = -11,
ErrWrongType = -12,
ErrBadSyscall = -13,
ErrOutOfRange = -14,
ErrBufferTooSmall = -15,
ErrBadState = -20,
ErrTimedOut = -21,
ErrShouldWait = -22,
ErrCanceled = -23,
ErrPeerClosed = -24,
ErrNotFound = -25,
ErrAlreadyExists = -26,
ErrAlreadyBound = -27,
ErrUnavailable = -28,
ErrAccessDenied = -30,
ErrIo = -40,
ErrIoRefused = -41,
ErrIoDataIntegrity = -42,
ErrIoDataLoss = -43,
ErrBadPath = -50,
ErrNotDir = -51,
ErrNotFile = -52,
ErrFileBig = -53,
ErrNoSpace = -54,
ErrStop = -60,
ErrNext = -61,
UnknownOther = -32_768,
}Expand description
A status code returned from the Magenta kernel.
See errors.md in the Magenta documentation for more information about the meaning of these codes.
Variants§
NoError = 0
ErrInternal = -1
ErrNotSupported = -2
ErrNoResources = -3
ErrNoMemory = -4
ErrCallFailed = -5
ErrInterruptedRetry = -6
ErrInvalidArgs = -10
ErrBadHandle = -11
ErrWrongType = -12
ErrBadSyscall = -13
ErrOutOfRange = -14
ErrBufferTooSmall = -15
ErrBadState = -20
ErrTimedOut = -21
ErrShouldWait = -22
ErrCanceled = -23
ErrPeerClosed = -24
ErrNotFound = -25
ErrAlreadyExists = -26
ErrAlreadyBound = -27
ErrAccessDenied = -30
ErrIo = -40
ErrIoRefused = -41
ErrIoDataIntegrity = -42
ErrIoDataLoss = -43
ErrBadPath = -50
ErrNotDir = -51
ErrNotFile = -52
ErrFileBig = -53
ErrNoSpace = -54
ErrStop = -60
ErrNext = -61
UnknownOther = -32_768
Any mx_status_t not in the set above will map to the following:
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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