pub struct MemorySessionStore { /* private fields */ }Expand description
In-memory session store backed by DashMap for lock-free concurrent access.
Implementations§
Trait Implementations§
Source§impl Clone for MemorySessionStore
impl Clone for MemorySessionStore
Source§fn clone(&self) -> MemorySessionStore
fn clone(&self) -> MemorySessionStore
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 Default for MemorySessionStore
impl Default for MemorySessionStore
Source§impl SessionStore for MemorySessionStore
impl SessionStore for MemorySessionStore
async fn create(&self, id: &str) -> SessionInfo
async fn get(&self, id: &str) -> Option<SessionInfo>
async fn touch(&self, id: &str)
async fn update_state(&self, id: &str, state: SessionState)
async fn set_client_info(&self, id: &str, info: ClientInfo)
async fn remove(&self, id: &str)
async fn list(&self) -> Vec<SessionInfo>
Auto Trait Implementations§
impl Freeze for MemorySessionStore
impl !RefUnwindSafe for MemorySessionStore
impl Send for MemorySessionStore
impl Sync for MemorySessionStore
impl Unpin for MemorySessionStore
impl UnsafeUnpin for MemorySessionStore
impl !UnwindSafe for MemorySessionStore
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