Function listen_packets

Source
pub fn listen_packets<F>(cb: F)
where F: Fn(Message) + Send + Sync + 'static,