Diagnostic

Trait Diagnostic 

Source
pub trait Diagnostic:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn visit(&self, visitor: &mut dyn Visitor) -> Result<(), Error>;
}
Expand description

A Mapped Diagnostic Context (MDC) that provides diagnostic key-values.

Required Methods§

Source

fn visit(&self, visitor: &mut dyn Visitor) -> Result<(), Error>

Visit the MDC key-values with the provided visitor.

Trait Implementations§

Source§

impl<T: Diagnostic> From<T> for Box<dyn Diagnostic>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§