Skip to main content

Report

Trait Report 

Source
pub trait Report {
    // Required method
    fn report<E, C: Config, D>(err: &E) -> String
       where for<'a> &'a E: Into<GErrView<'a, C, D>>,
             C::Id: Display + Serialize,
             D: Debug + Serialize;
}
Expand description

Reporting trait.

Reports error in multiple forms of display.

Required Methods§

Source

fn report<E, C: Config, D>(err: &E) -> String
where for<'a> &'a E: Into<GErrView<'a, C, D>>, C::Id: Display + Serialize, D: Debug + Serialize,

Reports error from error borrowed form crate::GErrView into String.

Supports JSON.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§