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§
Implementors§
impl<A, F> MessageHandler<A, (Sync,)> for F
Empty Sync handler
impl<A, F, Fut> MessageHandler<A, (Async,)> for F
Empty Async handler