Expand description
Asynchronous I/O abstractions for the ntex ecosystem.
Io wraps an underlying IoStream and coordinates buffered reads,
writes, backpressure, timeouts, and shutdown. Protocol transforms can be
composed through Filter layers, while Framed combines an I/O stream
with an ntex-codec encoder and decoder.
Use IoConfig to configure buffer thresholds and connection timeouts.
Re-exports§
pub use self::cfg::IoConfig;
Modules§
Macros§
- forward_
query - forward_
ready - Implements
Filter::poll_read_readyandFilter::poll_write_readyby forwarding readiness checks to a field. - forward_
shutdown
Structs§
- Base
- Default
Iofilter - Filter
Buf - Filter
Ctx - Framed
- A codec-driven interface to an underlying I/O stream.
- Id
- Io
- Buffered, filterable interface to an underlying I/O stream.
- IoBoxed
- Boxed
Ioobject with erased filter type - IoContext
- Context for io read task
- IoRef
- Cloneable reference to an
Ioconnection’s shared state. - Layer
- OnDisconnect
- The
OnDisconnectfuture resolves when the I/O stream is disconnected. - Sealed
- Sealed filter type
- Timer
Handle
Enums§
- IoStatus
Update - I/O status update events.
- IoTask
Status - Current status of the I/O state.
- Readiness
- Filter readiness state.
- Recv
Error - Errors that can occur while receiving data.
Traits§
- Filter
- Filter
Layer - A processing layer that transforms an I/O stream’s read and write buffers.
- Handle
- Control handle for transport-specific I/O tasks.
- IoStream
- An underlying transport that can be managed by
Io.