pub struct MemorySessionStore { /* private fields */ }Expand description
In-memory store for development and single-instance deployments.
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 (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 Default for MemorySessionStore
impl Default for MemorySessionStore
Source§fn default() -> MemorySessionStore
fn default() -> MemorySessionStore
Returns the “default value” for a type. Read more
Source§impl SessionStore for MemorySessionStore
impl SessionStore for MemorySessionStore
fn load( &self, id: &str, ) -> Pin<Box<dyn Future<Output = Option<BTreeMap<String, Value>>> + Send>>
fn save( &self, id: &str, data: BTreeMap<String, Value>, ttl: Duration, ) -> Pin<Box<dyn Future<Output = ()> + Send>>
fn destroy(&self, id: &str) -> Pin<Box<dyn Future<Output = ()> + Send>>
Auto Trait Implementations§
impl Forget for MemorySessionStore
impl Freeze for MemorySessionStore
impl Move 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