Skip to main content

Logger

Trait Logger 

Source
pub trait Logger {
    // Required methods
    fn warn(&mut self, message: &str);
    fn err(&mut self, message: &str);
}
Available on crate feature validate only.

Required Methods§

Source

fn warn(&mut self, message: &str)

Source

fn err(&mut self, message: &str)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Logger for StderrLogger

Source§

impl Logger for VecLogger

Source§

impl<W, E> Logger for CallbackLogger<W, E>
where W: FnMut(&str), E: FnMut(&str),