pub struct RedisSessionStorage { /* private fields */ }Implementations§
Source§impl RedisSessionStorage
impl RedisSessionStorage
pub fn new<T: IntoConnectionInfo>( connection_info: T, session_expiry: Duration, new_session_length: usize, options: RedisOptions, ) -> Result<Self, RedisError>
Trait Implementations§
Source§impl Clone for RedisSessionStorage
impl Clone for RedisSessionStorage
Source§fn clone(&self) -> RedisSessionStorage
fn clone(&self) -> RedisSessionStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SessionStorage for RedisSessionStorage
impl SessionStorage for RedisSessionStorage
fn start_session(&self, username: String) -> Result<String, Error>
fn end_session( &self, username: String, session_id: EncryptionContext, ) -> Result<(), Error>
fn get_sessions_for_user( &self, username: String, ) -> Result<Vec<EncryptionContext>, Error>
fn get_all_sessions(&self) -> Result<Vec<EncryptionContext>, Error>
fn session_exists( &self, username: String, session_id: EncryptionContext, ) -> Result<bool, Error>
fn clone_box(&self) -> Box<dyn SessionStorage>
Auto Trait Implementations§
impl !RefUnwindSafe for RedisSessionStorage
impl !UnwindSafe for RedisSessionStorage
impl Freeze for RedisSessionStorage
impl Send for RedisSessionStorage
impl Sync for RedisSessionStorage
impl Unpin for RedisSessionStorage
impl UnsafeUnpin for RedisSessionStorage
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