Struct trace_error::Trace
[−]
[src]
pub struct Trace<E: Error> { /* fields omitted */ }
Trace error that encapsulates a backtrace alongside an error value.
Trace itself does not implement Error
, so they cannot be nested.
Methods
impl<E: Error> Trace<E>
[src]
fn new(error: E, backtrace: Box<SourceBacktrace>) -> Trace<E>
Creates a new Trace
from the given error and backtrace
fn into_error(self) -> E
Consume self and return the inner error value
fn backtrace(&self) -> &SourceBacktrace
Get a reference to the inner backtrace
fn format<Fmt: BacktraceFmt>(&self, header: bool, reverse: bool) -> String
Format the error and backtrace
fn convert<O: Error>(self) -> Trace<O> where O: From<E>
Convert the inner error of type E
into type O
Trait Implementations
impl<E: Debug + Error> Debug for Trace<E>
[src]
impl<E: Error> Send for Trace<E> where E: Send
[src]
impl<E: Error> Deref for Trace<E>
[src]
type Target = E
The resulting type after dereferencing
fn deref(&self) -> &E
The method called to dereference a value