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 Fwhere F: FnMut(Message),