Crate ntex_io

Source
Expand description

Utilities for abstructing io streams

Modules§

testing
utilities and helpers for testing
types
Query related types

Macros§

forward_query
forward_ready
An implementation of [poll_read/write_ready] that forwards readiness checks to a field.
forward_shutdown

Structs§

Base
Default Io filter
Dispatcher
Dispatcher - is a future that reads frames from bytes stream and pass then to the service.
DispatcherConfig
Shared dispatcher configuration
FilterCtx
FilterReadStatus
Framed
A unified interface to an underlying I/O object, using the Encoder and Decoder traits to encode and decode frames. Framed is heavily optimized for streaming io.
Io
Interface object to underlying io stream
IoBoxed
Boxed Io object with erased filter type
IoContext
Context for io read task
IoRef
Layer
OnDisconnect
OnDisconnect future resolves when socket get disconnected
ReadBuf
ReadContext
Context for io read task
Sealed
Sealed filter type
TimerHandle
WriteBuf
WriteContext
Context for io write task
WriteContextBuf
Context buf for io write task

Enums§

DispatchItem
Dispatcher item
IoStatusUpdate
Io status
IoTaskStatus
Status for read task
Readiness
Filter ready state
RecvError
Recv error

Traits§

Filter
FilterLayer
Handle
IoStream

Functions§

seal
Service that converts any Io<F> stream to IoBoxed stream