Struct tower_sessions_memory_store::MemoryStore
source · pub struct MemoryStore(/* private fields */);Expand description
A session store that lives only in memory.
This is useful for testing but not recommended for real applications.
§Examples
use tower_sessions::MemoryStore;
MemoryStore::default();Trait Implementations§
source§impl Clone for MemoryStore
impl Clone for MemoryStore
source§fn clone(&self) -> MemoryStore
fn clone(&self) -> MemoryStore
Returns a copy 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 MemoryStore
impl Debug for MemoryStore
source§impl Default for MemoryStore
impl Default for MemoryStore
source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
source§impl SessionStore for MemoryStore
impl SessionStore for MemoryStore
source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 Record
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 Record
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
A method for saving a session in a store.
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl !UnwindSafe for MemoryStore
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