pub trait ErrorTrace: Error {
// Required method
fn trace(&self) -> ErrorTraceFormatter<'_>;
}Expand description
Implements a function over a normal Error that prints it and any Error::source() it has.
Required Methods§
Sourcefn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
Returns a formatter that writes the error to the given formatter, with any sources it has.
§Returns
A new ErrorTraceFormatter that can write this error and its sources.