Struct ockam_node::storage::InMemoryKeyValueStorage
source · pub struct InMemoryKeyValueStorage<K, V> { /* private fields */ }Expand description
In memory implementation of a key / value storage
Implementations§
Trait Implementations§
source§impl<K: Clone, V: Clone> Clone for InMemoryKeyValueStorage<K, V>
impl<K: Clone, V: Clone> Clone for InMemoryKeyValueStorage<K, V>
source§fn clone(&self) -> InMemoryKeyValueStorage<K, V>
fn clone(&self) -> InMemoryKeyValueStorage<K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<K, V> Default for InMemoryKeyValueStorage<K, V>
impl<K, V> Default for InMemoryKeyValueStorage<K, V>
source§impl<K: Ord + Send + Sync + 'static, V: Clone + Send + Sync + 'static> KeyValueStorage<K, V> for InMemoryKeyValueStorage<K, V>
impl<K: Ord + Send + Sync + 'static, V: Clone + Send + Sync + 'static> KeyValueStorage<K, V> for InMemoryKeyValueStorage<K, V>
source§fn put<'life0, 'async_trait>(
&'life0 self,
key: K,
value: V
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>( &'life0 self, key: K, value: V ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Store a key / value
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for InMemoryKeyValueStorage<K, V>
impl<K, V> Send for InMemoryKeyValueStorage<K, V>where K: Send + Sync, V: Send + Sync,
impl<K, V> Sync for InMemoryKeyValueStorage<K, V>where K: Send + Sync, V: Send + Sync,
impl<K, V> Unpin for InMemoryKeyValueStorage<K, V>
impl<K, V> UnwindSafe for InMemoryKeyValueStorage<K, V>
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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