[][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

SuccessWithValue

Success value must be positive

Fields of SuccessWithValue

value: usize
SUCCESS

Operation completed successfully

FAIL

Generic failure condition

EBUSY

Underlying system is busy; retry

EALREADY

The state requested is already set

EOFF

The component is powered down

ERESERVE

Reservation required before use

EINVAL

An invalid parameter was passed

ESIZE

Parameter passed was too large

ECANCEL

Operation canceled by a call

ENOMEM

Memory required not available

ENOSUPPORT

Operation or command is unsupported

ENODEVICE

Device does not exist

EUNINSTALLED

Device is not physically installed

ENOACK

Packet transmission not acknowledged

Trait Implementations

impl Clone for ReturnCode[src]

impl Copy for ReturnCode[src]

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 StructuralPartialEq for ReturnCode[src]

Auto Trait Implementations

impl Send for ReturnCode

impl Sync for ReturnCode

impl Unpin for ReturnCode

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.