[−][src]Enum sunrise_libuser::error::Error
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]
fn from(error: FileSystemError) -> Self
[src]
impl From<HidError> for Error
[src]
impl From<KernelError> for Error
[src]
fn from(error: KernelError) -> Self
[src]
impl From<LibuserError> for Error
[src]
fn from(error: LibuserError) -> Self
[src]
impl From<LoaderError> for Error
[src]
fn from(error: LoaderError) -> Self
[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]
fn from(error: TwiliError) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,