[]Enum ravenlib::error::RavenServerErrorKind

pub enum RavenServerErrorKind {
    Msg(String),
    Parse(Error),
    Network(Error),
    PermissionDenied,
    NotLoggedIn,
    DoesNotExist(String),
    ServerError(StatusCode),
    TooLarge,
    PreConditionFailed(String),
    // some variants omitted
}

The kind of an error.

Variants

Msg(String)

A convenient variant for String.

Parse(Error)Network(Error)PermissionDeniedNotLoggedInDoesNotExist(String)ServerError(StatusCode)TooLargePreConditionFailed(String)

Methods

impl RavenServerErrorKind

pub fn description(&self) -> &str

A string describing the error kind.

Trait Implementations

impl From<RavenServerErrorKind> for ErrorKind

impl From<RavenServerErrorKind> for RavenServerError

impl<'a> From<&'a str> for RavenServerErrorKind

impl From<String> for RavenServerErrorKind

impl From<RavenServerError> for RavenServerErrorKind

impl Debug for RavenServerErrorKind

impl Display for RavenServerErrorKind

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T