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.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.