[][src]Enum jsonbox::client::Error

pub enum Error {
    Network {
        source: Error,
    },
    Json {
        reason: String,
        source: Error,
    },
    General {
        code: u16,
        message: String,
    },
}

Variants

Network

Fields of Network

source: Error
Json

Fields of Json

reason: Stringsource: Error
General

Fields of General

code: u16message: String

Trait Implementations

impl From<Context<Error, Network>> for Error[src]

impl<__T0> From<Context<Error, Json<__T0>>> for Error where
    __T0: Into<String>, 
[src]

impl<__T0, __T1> From<Context<NoneError, General<__T0, __T1>>> for Error where
    __T0: Into<u16>,
    __T1: Into<String>, 
[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl Send for Error

impl Unpin for Error

impl Sync for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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

impl<T> From<T> 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.

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

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

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

impl<T> Erased for T

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> AsFail for T where
    T: Fail, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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