[][src]Enum kernel::ReturnCode

pub enum ReturnCode {
    SuccessWithValue {
        value: usize,
    },
    SUCCESS,
    FAIL,
    EBUSY,
    EALREADY,
    EOFF,
    ERESERVE,
    EINVAL,
    ESIZE,
    ECANCEL,
    ENOMEM,
    ENOSUPPORT,
    ENODEVICE,
    EUNINSTALLED,
    ENOACK,
}

Standard return errors in Tock.

Variants

Success value must be positive

Fields of SuccessWithValue

Operation completed successfully

Generic failure condition

Underlying system is busy; retry

The state requested is already set

The component is powered down

Reservation required before use

An invalid parameter was passed

Parameter passed was too large

Operation canceled by a call

Memory required not available

Operation or command is unsupported

Device does not exist

Device is not physically installed

Packet transmission not acknowledged

Trait Implementations

impl Debug for ReturnCode
[src]

impl From<Error> for ReturnCode
[src]

impl From<ReturnCode> for isize
[src]

impl From<ReturnCode> for usize
[src]

impl PartialEq<ReturnCode> for ReturnCode
[src]

impl Copy for ReturnCode
[src]

impl Clone for ReturnCode
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ReturnCode

impl Sync for ReturnCode

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]