Trait tor_error::ErrorReport
source · pub trait ErrorReport: StdError + Sized + 'static {
// Provided method
fn report(&self) -> Report<ReportHelper<'_>> { ... }
}Expand description
Extension trait providing .report() method on concrete errors
This is implemented for types that directly implement std::error::Error + 'static.
For types like anyhow::Error that impl AsRef<dyn Error>,
use tor_error::Report(err) directly.
Provided Methods§
sourcefn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes