Skip to main content

Log

Trait Log 

Source
pub trait Log {
    // Required method
    fn log(&self);
}
Expand description

Trait for logging errors

Required Methods§

Source

fn log(&self)

Log an error via tracing utilities, printing it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Log for Error

Source§

impl<T> Log for Result<T>