pub trait MessageHandler<A: Adapter, T>:
Send
+ Sync
+ 'static {
// Required method
fn call(&self, s: Arc<Socket<A>>, v: Value, ack_id: Option<i64>);
}Expand description
Define a handler for the connect event.
It is implemented for closures with up to 16 arguments. They must implement the FromMessageParts trait or the FromMessage trait for the last one.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<A, F, Fut> MessageHandler<A, ()> for F
Empty handler