[][src]Enum sunrise_libuser::error::Error

pub enum Error {
    Kernel(KernelError, Backtrace),
    Loader(LoaderError, Backtrace),
    Pm(PmError, Backtrace),
    Sm(SmError, Backtrace),
    Vi(ViError, Backtrace),
    Libuser(LibuserError, Backtrace),
    Ahci(AhciError, Backtrace),
    Time(TimeError, Backtrace),
    FileSystem(FileSystemError, Backtrace),
    Hid(HidError, Backtrace),
    Twili(TwiliError, Backtrace),
    Unknown(u32, Backtrace),
}

The global error type. Every error defined here can be downcasted to this type. A Backtrace will be created when casting an error to this type.

Variants

Kernel(KernelError, Backtrace)

A Kernel Error. Usually returned by syscalls.

Loader(LoaderError, Backtrace)

Loader error.

Pm(PmError, Backtrace)

Process Manager error.

Sm(SmError, Backtrace)

Service Manager error.

Vi(ViError, Backtrace)

Vi Error

Libuser(LibuserError, Backtrace)

Internal Libuser error.

Ahci(AhciError, Backtrace)

Ahci driver error.

Time(TimeError, Backtrace)

Time errors

FileSystem(FileSystemError, Backtrace)

Filesystem driver error

Hid(HidError, Backtrace)

HID errors

Twili(TwiliError, Backtrace)

Twili Pipe errors

Unknown(u32, Backtrace)

An unknown error type. Either someone returned a custom error, or this version of libuser is outdated.

Implementations

impl Error[src]

pub fn from_code(errcode: u32) -> Error[src]

Create an Error from a packed error code, creating a backtrace at this point.

pub fn as_code(&self) -> u32[src]

Pack this error into an error code. Note that the returned error code won't have any tracing information associated with it. If possible, to assist in debugging, a way to pass the backtrace should be provided.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl From<AhciError> for Error[src]

impl From<FileSystemError> for Error[src]

impl From<HidError> for Error[src]

impl From<KernelError> for Error[src]

impl From<LibuserError> for Error[src]

impl From<LoaderError> for Error[src]

impl From<PmError> for Error[src]

impl From<SmError> for Error[src]

impl From<TimeError> for Error[src]

impl From<TwiliError> for Error[src]

impl From<ViError> for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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> SizedIPCBuffer for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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.