[−][src]Function kagura::component::batch::web_socket::on_message
pub fn on_message<Msg>(
url: &'static str,
msg_gen: impl FnMut() -> Msg + 'static
) -> Box<dyn FnOnce(Box<dyn FnMut(Msg)>)> where
Msg: 'static,