[][src]Struct err_context::BoxContext

pub struct BoxContext<M, E: ?Sized> { /* fields omitted */ }

Additional context for boxed errors.

This has the same purpose and the same functionality as Context. It is a separate type for technical reasons in implementation.

Implementations

impl<M, E: ?Sized> BoxContext<M, E>[src]

pub fn new(msg: M, error: Box<E>) -> Self[src]

Direct construction of the context.

pub fn into_inner(self) -> Box<E>[src]

Extracts the inner error, peeling off the outer layer.

Trait Implementations

impl<M: Debug, E: Debug + ?Sized> Debug for BoxContext<M, E>[src]

impl<M: Display, E: ?Sized> Display for BoxContext<M, E>[src]

impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Send + Sync>[src]

impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Send>[src]

impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Sync>[src]

impl<M: Debug + Display> Error for BoxContext<M, dyn Error>[src]

Auto Trait Implementations

impl<M, E: ?Sized> RefUnwindSafe for BoxContext<M, E> where
    E: RefUnwindSafe,
    M: RefUnwindSafe

impl<M, E: ?Sized> Send for BoxContext<M, E> where
    E: Send,
    M: Send

impl<M, E: ?Sized> Sync for BoxContext<M, E> where
    E: Sync,
    M: Sync

impl<M, E: ?Sized> Unpin for BoxContext<M, E> where
    M: Unpin

impl<M, E: ?Sized> UnwindSafe for BoxContext<M, E> where
    E: UnwindSafe,
    M: UnwindSafe

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<E> ErrorExt for E where
    E: Error
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.