Trait gotham::state::StateData
[−]
[src]
pub trait StateData: Any + Send { }
A marker trait for types that can be stored in State
.
Typically implemented using #[derive(StateData)]
, which is provided by the gotham_derive
crate.
Implementors
impl<T> StateData for SessionData<T> where
T: Default + Serialize + for<'de> Deserialize<'de> + Send + 'static,impl StateData for Method
impl StateData for Uri
impl StateData for HttpVersion
impl StateData for Headers
impl StateData for RequestPathSegments
impl StateData for RequestId