Trait mai::Handler [] [src]

pub trait Handler<P: ?Sized> where
    P: Protocol
{ fn on_ready(&mut self, context: &mut Context<P>) { ... } fn on_frame(&mut self, context: &mut Context<P>, _frame: P::Frame) { ... } fn on_timeout(&mut self, context: &mut Context<P>, timeout: P::Timeout) { ... } fn on_global_timeout(
        &mut self,
        engine: EngineHandle<P>,
        timeout: P::Timeout
    ) { ... } fn on_error(&mut self, context: &mut Context<P>, error: &Error) { ... } fn on_closed(&mut self, context: &mut Context<P>) { ... } }

Provided Methods

Implementors