Trait vapcore_io::IoHandler [−][src]
Generic IO handler.
All the handler function are called from within IO event loop.
Message
type is used as notification data
Provided methods
fn initialize(&self, _io: &IoContext<Message>)
[src]
Initialize the handler
fn timeout(&self, _io: &IoContext<Message>, _timer: TimerToken)
[src]
Timer function called after a timeout created with HandlerIo::timeout
.
fn message(&self, _io: &IoContext<Message>, _message: &Message)
[src]
Called when a broadcasted message is received. The message can only be sent from a different IO handler.