pub struct InMemoryManagedStateStore { /* private fields */ }Expand description
The in-memory managed state store.
The default, and the only implementation that ships. Named explicitly so its guarantee is visible at the call site rather than implied by the absence of an alternative.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryManagedStateStore
impl Debug for InMemoryManagedStateStore
Source§impl Default for InMemoryManagedStateStore
impl Default for InMemoryManagedStateStore
Source§fn default() -> InMemoryManagedStateStore
fn default() -> InMemoryManagedStateStore
Returns the “default value” for a type. Read more
Source§impl ManagedStateStore for InMemoryManagedStateStore
impl ManagedStateStore for InMemoryManagedStateStore
Source§fn durability(&self) -> Durability
fn durability(&self) -> Durability
What this store guarantees after process loss.
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
state: ManagedSessionState,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
state: ManagedSessionState,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Records the state of
session_id, replacing any previous snapshot. Read moreSource§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ManagedSessionState>, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ManagedSessionState>, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryManagedStateStore
impl !UnwindSafe for InMemoryManagedStateStore
impl Freeze for InMemoryManagedStateStore
impl Send for InMemoryManagedStateStore
impl Sync for InMemoryManagedStateStore
impl Unpin for InMemoryManagedStateStore
impl UnsafeUnpin for InMemoryManagedStateStore
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