pub struct InMemoryStorage<K, V>{ /* private fields */ }
Expand description
In-memory storage manages it’s data in simple hash map
Implementations§
Trait Implementations§
Source§impl<K, V> Create<K, V> for InMemoryStorage<K, V>
impl<K, V> Create<K, V> for InMemoryStorage<K, V>
Source§impl<K, V> Default for InMemoryStorage<K, V>
impl<K, V> Default for InMemoryStorage<K, V>
Source§fn default() -> InMemoryStorage<K, V>
fn default() -> InMemoryStorage<K, V>
Returns the “default value” for a type. Read more
Source§impl<K, V> Delete<K, V> for InMemoryStorage<K, V>
impl<K, V> Delete<K, V> for InMemoryStorage<K, V>
Source§impl<K, V> From<&V> for InMemoryStorage<K, V>
impl<K, V> From<&V> for InMemoryStorage<K, V>
Source§impl<K, V> From<&Vec<V>> for InMemoryStorage<K, V>
impl<K, V> From<&Vec<V>> for InMemoryStorage<K, V>
Source§impl<K, V> Read<K, V> for InMemoryStorage<K, V>
impl<K, V> Read<K, V> for InMemoryStorage<K, V>
type Error = InMemoryStorageError
fn find_by_id(&self, id: &K) -> Result<V, InMemoryStorageError>
Source§impl<K, V> ReadWithPaginationAndSort<K, V> for InMemoryStorage<K, V>
impl<K, V> ReadWithPaginationAndSort<K, V> for InMemoryStorage<K, V>
type Error = InMemoryStorageError
fn find_all_with_page( &self, page: &Page, ) -> Result<Vec<V>, InMemoryStorageError>
fn find_all_with_page_and_sort( &self, page: &Page, sort: &Sort, ) -> Result<Vec<V>, InMemoryStorageError>
Source§impl<K, V> Update<K, V> for InMemoryStorage<K, V>
impl<K, V> Update<K, V> for InMemoryStorage<K, V>
impl<K, V> Crud<K, V> for InMemoryStorage<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for InMemoryStorage<K, V>
impl<K, V> RefUnwindSafe for InMemoryStorage<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for InMemoryStorage<K, V>
impl<K, V> Sync for InMemoryStorage<K, V>
impl<K, V> Unpin for InMemoryStorage<K, V>
impl<K, V> UnwindSafe for InMemoryStorage<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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