[][src]Struct tracerr::Traced

pub struct Traced<E> { /* fields omitted */ }

Transparent wrapper for an error which holds captured error trace along with it.

Implementations

impl<E> Traced<E>[src]

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

Destructs Traced error returning only the original error.

pub fn into_parts(self) -> (E, Trace)[src]

Destructs Traced error into its original error and the captured Trace.

pub fn from_parts(err: E, f: Frame) -> Self[src]

Composes given error and the captured Trace into a Traced error.

pub fn trace(&self) -> &Trace[src]

References to the captured Trace.

This is a raw equivalent of AsRef<Trace> (which cannot be implemented at the moment due to the lack of specialization in Rust).

Trait Implementations

impl<E> AsMut<E> for Traced<E>[src]

impl<E> AsRef<E> for Traced<E>[src]

impl<E: Clone> Clone for Traced<E>[src]

impl<E: Debug> Debug for Traced<E>[src]

impl<E> Display for Traced<E> where
    E: Display
[src]

impl<E: Fail> Fail for Traced<E>[src]

feature: failure [Fail] implementation for Traced.

impl<E> From<(E, Frame)> for Traced<E>[src]

impl<E: Fail> From<Traced<E>> for Box<dyn Fail>[src]

feature: failure Easy conversion into Boxed [Fail] for Traced errors.

impl<E> WrapTraced<E> for Traced<E>[src]

fn wrap_traced(self, f: Frame) -> Self[src]

Pushes given Frame into already captured Trace of Traced wrapper.

Auto Trait Implementations

impl<E> RefUnwindSafe for Traced<E> where
    E: RefUnwindSafe

impl<E> Send for Traced<E> where
    E: Send

impl<E> Sync for Traced<E> where
    E: Sync

impl<E> Unpin for Traced<E> where
    E: Unpin

impl<E> UnwindSafe for Traced<E> where
    E: UnwindSafe

Blanket Implementations

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

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

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<E> WrapTraced<E> for E[src]