pub trait StateData: Any + Send { }
Expand description

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

Implementors