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

pub enum ErrorKind {
    InvalidData,
    InvalidInput,
    NotFound,
    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

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.

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 Copy 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.

impl Clone for ErrorKind[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorKind[src]

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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