pub struct ValkeyStateCache { /* private fields */ }Implementations§
Trait Implementations§
Source§impl StateProjectionCache for ValkeyStateCache
impl StateProjectionCache for ValkeyStateCache
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ValkeyStateCache
impl RefUnwindSafe for ValkeyStateCache
impl Send for ValkeyStateCache
impl Sync for ValkeyStateCache
impl Unpin for ValkeyStateCache
impl UnsafeUnpin for ValkeyStateCache
impl UnwindSafe for ValkeyStateCache
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