tracing_helpers

Trait AnyhowValueExt

Source
pub trait AnyhowValueExt {
    // Required method
    fn as_error(&self) -> &(dyn Error + 'static);
}
Expand description

Extension trait to make it easy to trace anyhow errors.

Required Methods§

Source

fn as_error(&self) -> &(dyn Error + 'static)

Returns the error as a type that can be traced.

Implementations on Foreign Types§

Source§

impl AnyhowValueExt for Error

Source§

fn as_error(&self) -> &(dyn Error + 'static)

Implementors§