pub trait MapErrTrace {
    type Output;

    fn map_err_trace(self) -> Self;
    fn map_err_trace_exit_unwrap(self, code: i32) -> Self::Output;
}
Expand description

Helper functions for Result<T, E> types to reduce overhead in the following situations:

function().map_err(|e| { trace_error(&e); e })

and variants

Required Associated Types

Required Methods

Implementations on Foreign Types

Simply call trace_error() on the Err (if there is one) and return the error.

This does nothing besides the side effect of printing the error trace

Trace the error and exit or unwrap the Ok(_).

Implementors