Trait gotham::state::StateData [] [src]

pub trait StateData: Any { }

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

This is typically implemented using #[derive(StateData)], which is provided by the gotham_derive crate.

#[derive(StateData)]
struct MyStateData {
    x: u32,
}

Implementations on Foreign Types

impl StateData for Body
[src]

impl StateData for Method
[src]

impl StateData for Uri
[src]

impl StateData for HttpVersion
[src]

impl StateData for Headers
[src]

impl StateData for Handle
[src]

Implementors