Crate io

Source
Expand description

General IO module.

Structs§

IoChannel
Allows sending messages into the event loop. All the IO handlers will get the message in the message callback.
IoContext
IO access point. This is passed to all IO handlers and provides an interface to the IO subsystem.
IoManager
Root IO handler. Manages user handlers, messages and IO timers.
IoService
General IO Service. Starts an event loop and dispatches IO requests. ‘Message’ is a notification message type

Enums§

IoError
IO Error
IoMessage
Messages used to communicate with the event loop from other threads.
NotifyError

Constants§

LOCAL_STACK_SIZE
Stack size Should be modified if it is changed in Rust since it is no way to know or get it
TOKENS_PER_HANDLER
Maximum number of tokens a handler can use

Traits§

IoHandler
Generic IO handler. All the handler function are called from within IO event loop. Message type is used as notification data
MapNonBlock
A helper trait to provide the map_non_block function on Results.

Functions§

would_block
Returns a std WouldBlock error without allocating

Type Aliases§

StreamToken
Stream ID
TimerToken
Timer ID