pub struct InMemorySessionStorage { /* private fields */ }Expand description
In-memory session storage backed by a concurrent hash map.
Suitable for testing and short-lived processes.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemorySessionStorage
impl Debug for InMemorySessionStorage
Source§impl Default for InMemorySessionStorage
impl Default for InMemorySessionStorage
Source§impl SessionStorage for InMemorySessionStorage
impl SessionStorage for InMemorySessionStorage
Source§async fn save(&self, session: &Session) -> Result<(), StorageError>
async fn save(&self, session: &Session) -> Result<(), StorageError>
Save a session (create or update).
Source§async fn list(&self) -> Result<Vec<SessionSummary>, StorageError>
async fn list(&self) -> Result<Vec<SessionSummary>, StorageError>
List all session summaries.
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