Struct ethcore_io::IoContext [] [src]

pub struct IoContext<Message> where Message: Send + Clone + 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 + Clone + Sync + 'static
[src]

Create a new IO access point. Takes references to all the data that can be updated within the IO handler.

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.

Register a new IO stream.

Deregister an IO stream.

Reregister an IO stream.

Broadcast a message to other IO clients

Get message channel

Unregister current IO handler.