pub struct MemorySessionBindingStore { /* private fields */ }Expand description
In-memory session store for embedded use and tests.
Trait Implementations§
Source§impl Debug for MemorySessionBindingStore
impl Debug for MemorySessionBindingStore
Source§impl Default for MemorySessionBindingStore
impl Default for MemorySessionBindingStore
Source§fn default() -> MemorySessionBindingStore
fn default() -> MemorySessionBindingStore
Returns the “default value” for a type. Read more
Source§impl SessionBindingStore for MemorySessionBindingStore
impl SessionBindingStore for MemorySessionBindingStore
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Looks up a provider thread for a caller session key.
Source§fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
thread_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
thread_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Atomically creates or replaces a session binding.
Auto Trait Implementations§
impl !Freeze for MemorySessionBindingStore
impl !RefUnwindSafe for MemorySessionBindingStore
impl Send for MemorySessionBindingStore
impl Sync for MemorySessionBindingStore
impl Unpin for MemorySessionBindingStore
impl UnsafeUnpin for MemorySessionBindingStore
impl UnwindSafe for MemorySessionBindingStore
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