pub trait MessageCallback {
    // Required method
    fn on_message(&mut self, msg: Message);
}

Required Methods§

source

fn on_message(&mut self, msg: Message)

Implementors§

source§

impl<F> MessageCallback for F
where F: FnMut(Message),