[][src]Enum haiku::support::ErrorKind

pub enum ErrorKind {
    Interrupted,
    InvalidData,
    InvalidInput,
    NotFound,
    NotAllowed,
    TimedOut,
    Other,
}

The kind of error that occured

Note that this list is not complete, there might be more error kinds added in the future.

Variants

Interrupted

An operation was (prematurely) interrupted by another system event. Usually, you can retry the operation in these instances.

InvalidData

This error is returned if the function cannot return valid data, for example due to a system error.

InvalidInput

This error tells that the user is supplying parameters that are not valid.

NotFound

This error is returned when one of the parameters of the function call refers to something that does not/no longer exists.

NotAllowed

This error is returned when the operation is not allowed, because the user has insufficient privileges, or the target of the operation does not allow it.

TimedOut

This error is returned whenever an operation may fail because it times out.

Other

This leftover category is for any other error.

Sometimes a lower level system error is not properly mapped to a higher level error. This might be corrected in future versions of the crate.

Trait Implementations

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl Debug for ErrorKind[src]

impl From<ErrorKind> for HaikuError[src]

fn from(kind: ErrorKind) -> HaikuError[src]

This is a shortcut to create a simple error based on an ErrorKind.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.