Function trillium::state

source ·
pub fn state<T: Clone + Send + Sync + 'static>(t: T) -> State<T>
Expand description

Constructs a new State handler from any Clone + Send + Sync + ’static. Alias for State::new