pub struct MemoryStore<K, V>(/* private fields */);Expand description
A non-persistent implementation of Store
This can be useful for testing, or in settings, in which the data should not be stored, for example when running as a command line tool in CI
Trait Implementations§
Source§impl<V: Clone> AppendableStore for MemoryStore<u64, V>
impl<V: Clone> AppendableStore for MemoryStore<u64, V>
Source§impl<K: Ord, V: Clone> AsyncStoreRead for MemoryStore<K, V>
impl<K: Ord, V: Clone> AsyncStoreRead for MemoryStore<K, V>
Source§impl<K: Ord, V: Clone> AsyncStoreWrite for MemoryStore<K, V>
impl<K: Ord, V: Clone> AsyncStoreWrite for MemoryStore<K, V>
Source§impl<K: Clone, V: Clone> Clone for MemoryStore<K, V>
impl<K: Clone, V: Clone> Clone for MemoryStore<K, V>
Source§fn clone(&self) -> MemoryStore<K, V>
fn clone(&self) -> MemoryStore<K, V>
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<K, V> Default for MemoryStore<K, V>
impl<K, V> Default for MemoryStore<K, V>
Source§impl<K: Ord + Clone, V: Clone> OrderedStoreRead for MemoryStore<K, V>
impl<K: Ord + Clone, V: Clone> OrderedStoreRead for MemoryStore<K, V>
Source§impl<K: Ord + Clone, V: Clone> SearchableStoreRead for MemoryStore<K, V>
impl<K: Ord + Clone, V: Clone> SearchableStoreRead for MemoryStore<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for MemoryStore<K, V>
impl<K, V> RefUnwindSafe for MemoryStore<K, V>
impl<K, V> Send for MemoryStore<K, V>
impl<K, V> Sync for MemoryStore<K, V>
impl<K, V> Unpin for MemoryStore<K, V>
impl<K, V> UnsafeUnpin for MemoryStore<K, V>
impl<K, V> UnwindSafe for MemoryStore<K, V>
Blanket Implementations§
impl<T> AsyncStore for Twhere
T: AsyncStoreRead + AsyncStoreWrite,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more