pub struct ServerSessionMemoryCache { /* private fields */ }
Expand description

An implementer of StoresServerSessions that stores everything in memory. If enforces a limit on the number of stored sessions to bound memory usage.

Implementations

Make a new ServerSessionMemoryCache. size is the maximum number of stored sessions, and may be rounded-up for efficiency.

Trait Implementations

Store session secrets encoded in value against key, overwrites any existing value against key. Returns true if the value was stored. Read more
Find a value with the given key. Return it, or None if it doesn’t exist. Read more
Find a value with the given key. Return it and delete it; or None if it doesn’t exist. Read more
Whether the store can cache another session. This is used to indicate to clients whether their session can be resumed; the implementation is not required to remember a session even if it returns true here. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.