pub fn state<T: Clone + Send + Sync + 'static>(t: T) -> State<T>
Constructs a new State handler from any Clone + Send + Sync + ’static. Alias for State::new
State
State::new