Struct rocket_session_store::Session
source · [−]pub struct Session<'s, T: 'static> { /* private fields */ }Expand description
A request guard implementing FromRequest to retrive the session based on the cookie from the user.
Implementations
Get the session value from the store.
Returns None if there is no initialized session value or if the value has expired.
Sets the session value from the store.
This will refresh the expiration timer.
Refreshes the expiration timer on the sesion in the store.
Removes the session from the store.
Trait Implementations
Auto Trait Implementations
impl<'s, T> !RefUnwindSafe for Session<'s, T>
impl<'s, T> !UnwindSafe for Session<'s, 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