[−][src]Struct tracerr::Traced
Transparent wrapper for an error which holds captured error trace along with it.
Methods
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]
pub fn from_parts(err: E, f: Frame) -> Self
[src]
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> WrapTraced<E> for Traced<E>
[src]
fn wrap_traced(self, f: Frame) -> Self
[src]
impl<E> AsRef<E> for Traced<E>
[src]
impl<E> AsMut<E> for Traced<E>
[src]
impl<E> From<(E, Frame)> for Traced<E>
[src]
impl<E: Fail> From<Traced<E>> for Box<dyn Fail>
[src]
impl<E> Display for Traced<E> where
E: Display,
[src]
E: Display,
impl<E: Debug> Debug for Traced<E>
[src]
impl<E: Fail> Fail for Traced<E>
[src]
[Fail
] implementation for Traced
.
Auto Trait Implementations
impl<E> Send for Traced<E> where
E: Send,
E: Send,
impl<E> Sync for Traced<E> where
E: Sync,
E: Sync,
impl<E> Unpin for Traced<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Traced<E> where
E: UnwindSafe,
E: UnwindSafe,
impl<E> RefUnwindSafe for Traced<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<E> WrapTraced<E> for E
[src]
fn wrap_traced(Self, Frame) -> Traced<E>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
T: Fail,