Struct sessions_core::Session[][src]

pub struct Session<G, V> { /* fields omitted */ }
Expand description

Session

Implementations

Creates new Session with id status and Config

Reads the session expires or cookie max_age

Reads the session beer

Writes the session beer

Reads the session state

Writes the session state

Gets the session id

Gets the session id

Gets the session data status

Gets the session status

Gets a value by the key

Sets a value by the key

Removes a value

Clears the state

Saves the current state to the store

Renews the new state

Destroys the current state from store

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.