pub struct SessionWithStore<S: SessionStore> {
pub session: Session,
pub session_store: S,
pub cookie_options: CookieOptions,
}Expand description
SessionWithStore binds a session object with its backing store and some cookie options. This is passed around by routes wanting to do things with a session.
Fields§
§session: Session§session_store: STrait Implementations§
Source§impl<S: Clone + SessionStore> Clone for SessionWithStore<S>
impl<S: Clone + SessionStore> Clone for SessionWithStore<S>
Source§fn clone(&self) -> SessionWithStore<S>
fn clone(&self) -> SessionWithStore<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for SessionWithStore<S>where
S: Freeze,
impl<S> RefUnwindSafe for SessionWithStore<S>where
S: RefUnwindSafe,
impl<S> Send for SessionWithStore<S>
impl<S> Sync for SessionWithStore<S>
impl<S> Unpin for SessionWithStore<S>where
S: Unpin,
impl<S> UnwindSafe for SessionWithStore<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more