[][src]Struct snafu::Context

pub struct Context<E, C> {
    pub error: E,
    pub context: C,
}

A combination of an underlying error and additional information about the error. It is not expected for users of this crate to interact with this type.

Fields

error: E

The underlying error

context: C

Information that provides a context for the underlying error

Auto Trait Implementations

impl<E, C> Send for Context<E, C> where
    C: Send,
    E: Send

impl<E, C> Sync for Context<E, C> where
    C: Sync,
    E: Sync

Blanket Implementations

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

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]