Module gotham::state [] [src]

Defines types for passing request state through Middleware and Handler implementations

Reexports

pub use state::request_id::request_id;
pub use state::request_id::set_request_id;

Modules

request_id

Defines a unique id per Request that should be output with all logging

Structs

State

Provides storage for request state, and stores one item of each type. The types used for storage must implement the gotham::state::StateData trait to allow its storage.

Traits

FromState

A trait for accessing data that is known to be stored in State.

StateData

A marker trait for types that can be stored in State.