Struct dyn_context::AppState [−][src]
pub struct AppState(_);
Expand description
Allows safely store state in thread-local storage.
Implementations
Store the state into a thread-local storage and call the provided function.
During the function execution the state is accessible through the AppState::with
method.
Get state from a thread-local storage. If this method is call outside of
AppState::set_and_then
execution context, state is not accessible, and
the method panics.