Module data

Source
Expand description

Types and traits for handling incoming body data.

Structs§

ByteUnit
A unit of bytes with saturating const constructors and arithmetic.
Capped
Encapsulates a value capped to a data limit.
Data
Type representing the body data of a request.
IoStream
A bidirectional, raw stream to the client.
Limits
Mapping from (hierarchical) data types to size limits.
N
Number of bytes read/written and whether that consisted of the entire stream.
TransformBuf
A buffer of transformable streaming data.

Enums§

DataStream
Raw data stream of a request body.

Traits§

FromData
Trait implemented by data guards to derive a value from request body data.
IoHandler
An upgraded connection I/O handler.
ToByteUnit
Extension trait for conversion from integer types to ByteUnit.
Transform
Chainable, in-place, streaming data transformer.

Type Aliases§

Outcome
Type alias for the Outcome of FromData.