Struct shio::state::State [] [src]

pub struct State { /* fields omitted */ }

Methods

impl State
[src]

[src]

Puts a value into the request state.

[src]

Gets a value from the request state.

With the nightly feature enabled, this will fallback to checking the shared state.

Panics

If there is no value in the request state of the given type.

[src]

Gets a value from the request state.

[src]

Gets a reference to the shared state.

Trait Implementations

impl Default for State
[src]

[src]

Returns the "default value" for a type. Read more