pub struct MapStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Store for MapStore
impl Store for MapStore
type Error = SystemTimeError
fn get<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<usize>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
value: usize,
expiry_s: usize,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for MapStore
impl !RefUnwindSafe for MapStore
impl Send for MapStore
impl Sync for MapStore
impl Unpin for MapStore
impl UnsafeUnpin for MapStore
impl !UnwindSafe for MapStore
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