Trait Logger

Source
pub trait Logger: 'static {
    // Required methods
    fn exec(&self, cmd: Command<'_>);
    fn response(&self, cmd: Command<'_>, res: &str);
}

Required Methods§

Source

fn exec(&self, cmd: Command<'_>)

Source

fn response(&self, cmd: Command<'_>, res: &str)

Implementations on Foreign Types§

Source§

impl<F, G> Logger for (F, G)
where F: Fn(Command<'_>) + 'static, G: Fn(Command<'_>, &str) + 'static,

Source§

fn exec(&self, cmd: Command<'_>)

Source§

fn response(&self, cmd: Command<'_>, res: &str)

Implementors§