Struct ethcore_io::IoContext[][src]

pub struct IoContext<Message> where
    Message: Send + Sync + 'static, 
{ /* fields omitted */ }

IO access point. This is passed to all IO handlers and provides an interface to the IO subsystem.

Methods

impl<Message> IoContext<Message> where
    Message: Send + Sync + 'static, 
[src]

Register a new recurring IO timer. 'IoHandler::timeout' will be called with the token.

Register a new IO timer once. 'IoHandler::timeout' will be called with the token.

Delete a timer.

Broadcast a message to other IO clients

Get message channel

Unregister current IO handler.

Auto Trait Implementations

impl<Message> Send for IoContext<Message>

impl<Message> Sync for IoContext<Message>