pub struct RedisSessionStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for RedisSessionStore
impl Clone for RedisSessionStore
Source§fn clone(&self) -> RedisSessionStore
fn clone(&self) -> RedisSessionStore
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 moreSource§impl SessionStore for RedisSessionStore
impl SessionStore for RedisSessionStore
Source§fn get(&self, key: &SessionKey) -> GResult<Option<(Session, Cas)>>
fn get(&self, key: &SessionKey) -> GResult<Option<(Session, Cas)>>
Fetch by key; returns
(Session, Cas) if present.Source§fn update_cas(
&self,
session: Session,
expected: Cas,
) -> GResult<Result<Cas, Cas>>
fn update_cas( &self, session: Session, expected: Cas, ) -> GResult<Result<Cas, Cas>>
Update using CAS—only writes if
expected matches the stored Cas.Auto Trait Implementations§
impl Freeze for RedisSessionStore
impl RefUnwindSafe for RedisSessionStore
impl Send for RedisSessionStore
impl Sync for RedisSessionStore
impl Unpin for RedisSessionStore
impl UnwindSafe for RedisSessionStore
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