[][src]Enum lib3h_protocol::error::ErrorKind

pub enum ErrorKind {
    Io(Error),
    TransportError(String),
    DeserializeError(DeserializeError),
    Lib3hError(StringOption<Backtrace>),
    UrlError(ParseError),
    Other(String),
    // some variants omitted
}

The specific type of an error.

Variants

Io(Error)

An I/O error that occurred while processing a data stream.

TransportError(String)

Error occuring when using transport.

DeserializeError(DeserializeError)

An error occuring whiling trying to deserialize stuff during gossiping for example.

Lib3hError(StringOption<Backtrace>)

Error occuring in Lib3h. This is kind of a hacky way to do it but it's a viable option to avoid circular dependency.

UrlError(ParseError)

Error occurred while parsing URLs

Other(String)

Yet undefined error.

Trait Implementations

impl Debug for ErrorKind[src]

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> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,