Skip to main content

Reportable

Trait Reportable 

Source
pub trait Reportable {
    // Required method
    fn report_to(&self) -> ReportTo;
}
Expand description

Classifies an error without logging it or choosing a transport or retry policy.

This trait does not require core::error::Error. It can be implemented manually when classification depends on a value rather than a variant.

Required Methods§

Source

fn report_to(&self) -> ReportTo

Return the intended recipient of the error’s diagnostic details.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Reportable + ?Sized> Reportable for &T

Implementors§