pub struct InMemoryDataStore { /* private fields */ }Trait Implementations§
Source§impl DataStore for InMemoryDataStore
impl DataStore for InMemoryDataStore
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Value,
timeout_seconds: Option<u64>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Default for InMemoryDataStore
impl Default for InMemoryDataStore
Source§fn default() -> InMemoryDataStore
fn default() -> InMemoryDataStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryDataStore
impl RefUnwindSafe for InMemoryDataStore
impl Send for InMemoryDataStore
impl Sync for InMemoryDataStore
impl Unpin for InMemoryDataStore
impl UnsafeUnpin for InMemoryDataStore
impl UnwindSafe for InMemoryDataStore
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