pub struct InMemorySessionStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemorySessionStorage
impl Clone for InMemorySessionStorage
Source§fn clone(&self) -> InMemorySessionStorage
fn clone(&self) -> InMemorySessionStorage
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 InMemorySessionStorage
impl SessionStorage for InMemorySessionStorage
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 Freeze for InMemorySessionStorage
impl RefUnwindSafe for InMemorySessionStorage
impl Send for InMemorySessionStorage
impl Sync for InMemorySessionStorage
impl Unpin for InMemorySessionStorage
impl UnsafeUnpin for InMemorySessionStorage
impl UnwindSafe for InMemorySessionStorage
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