Struct rocket_session_store::SessionStore
source · [−]pub struct SessionStore<T> {
pub store: Box<dyn Store<Value = T>>,
pub name: String,
pub duration: Duration,
}Expand description
Store that keeps tracks of sessions
Fields
store: Box<dyn Store<Value = T>>The store that will keep track of sessions.
name: StringThe name of the cookie to be used for sessions.
This will be the name the cookie will be stored under in the browser.
duration: DurationThe duration of the session.
When so much time passes after storing or touching a session, it expires and won’t be accesible.
Implementations
A function to turn the store into a Fairing to attach on a rocket.
Auto Trait Implementations
impl<T> !RefUnwindSafe for SessionStore<T>
impl<T> Send for SessionStore<T>
impl<T> Sync for SessionStore<T>
impl<T> Unpin for SessionStore<T>
impl<T> !UnwindSafe for SessionStore<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more