Module rocket::data[][src]

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.

DataStream

Raw data stream of a request body.

Limits

Mapping from (hierarchical) data types to size limits.

N

Number of bytes read/written and whether that consisted of the entire stream.

Traits

FromData

Trait implemented by data guards to derive a value from request body data.

ToByteUnit

Extension trait for conversion from integer types to ByteUnit.

Type Definitions

Outcome

Type alias for the Outcome of FromData.