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

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

Implementations

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.