Callback

Trait Callback 

Source
pub trait Callback {
    type Output;

    // Required method
    fn call(&mut self, instr: &Instrument, event: &Event) -> Self::Output;
}
Expand description

Defines the ability for being passed to Instrument::install_handler

Required Associated Types§

Required Methods§

Source

fn call(&mut self, instr: &Instrument, event: &Event) -> Self::Output

Implementors§

Source§

impl<F, Out> Callback for F
where F: FnMut(&Instrument, &Event) -> Out,

Source§

type Output = Out