pub struct InMemoryStateCache { /* private fields */ }Implementations§
Source§impl InMemoryStateCache
impl InMemoryStateCache
pub fn new() -> InMemoryStateCache
Trait Implementations§
Source§impl Clone for InMemoryStateCache
impl Clone for InMemoryStateCache
Source§fn clone(&self) -> InMemoryStateCache
fn clone(&self) -> InMemoryStateCache
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 InMemoryStateCache
impl Default for InMemoryStateCache
Source§fn default() -> InMemoryStateCache
fn default() -> InMemoryStateCache
Returns the “default value” for a type. Read more
Source§impl StateProjectionCache for InMemoryStateCache
impl StateProjectionCache for InMemoryStateCache
fn get_projection<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionSnapshot>, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryStateCache: 'async_trait,
fn set_projection<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
snapshot: SessionSnapshot,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryStateCache: 'async_trait,
fn invalidate<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryStateCache: 'async_trait,
Auto Trait Implementations§
impl Freeze for InMemoryStateCache
impl RefUnwindSafe for InMemoryStateCache
impl Send for InMemoryStateCache
impl Sync for InMemoryStateCache
impl Unpin for InMemoryStateCache
impl UnsafeUnpin for InMemoryStateCache
impl UnwindSafe for InMemoryStateCache
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