pub struct MemorySessionBackend { /* private fields */ }Expand description
Shared in-memory reference backend used by local applications and contract tests.
Implementations§
Trait Implementations§
Source§impl Clone for MemorySessionBackend
impl Clone for MemorySessionBackend
Source§fn clone(&self) -> MemorySessionBackend
fn clone(&self) -> MemorySessionBackend
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 Debug for MemorySessionBackend
impl Debug for MemorySessionBackend
Source§impl Default for MemorySessionBackend
impl Default for MemorySessionBackend
Source§fn default() -> MemorySessionBackend
fn default() -> MemorySessionBackend
Returns the “default value” for a type. Read more
Source§impl SessionBackend for MemorySessionBackend
impl SessionBackend for MemorySessionBackend
fn load( &self, id: String, now: u64, refresh_expires_at: u64, ) -> BoxFuture<Result<Option<SessionSnapshot>, SessionBackendError>>
fn create( &self, id: String, values: HashMap<String, Value>, expires_at: u64, ) -> BoxFuture<Result<SessionWrite, SessionBackendError>>
fn save( &self, id: String, expected_version: u64, values: HashMap<String, Value>, expires_at: u64, ) -> BoxFuture<Result<SessionWrite, SessionBackendError>>
fn rotate( &self, old_id: String, new_id: String, expected_version: u64, values: HashMap<String, Value>, expires_at: u64, ) -> BoxFuture<Result<SessionWrite, SessionBackendError>>
fn delete( &self, id: String, expected_version: u64, ) -> BoxFuture<Result<SessionWrite, SessionBackendError>>
Auto Trait Implementations§
impl Freeze for MemorySessionBackend
impl RefUnwindSafe for MemorySessionBackend
impl Send for MemorySessionBackend
impl Sync for MemorySessionBackend
impl Unpin for MemorySessionBackend
impl UnsafeUnpin for MemorySessionBackend
impl UnwindSafe for MemorySessionBackend
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