pub struct InMemoryStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemoryStorage
impl Clone for InMemoryStorage
Source§impl Default for InMemoryStorage
impl Default for InMemoryStorage
Source§impl StorageAdapter for InMemoryStorage
impl StorageAdapter for InMemoryStorage
fn get(&self, key: &str) -> StorageResult<Option<String>>
fn put(&self, key: &str, value: String) -> StorageResult<()>
fn del(&self, key: &str) -> StorageResult<()>
fn list(&self, prefix: &str) -> StorageResult<Vec<String>>
Source§fn put_preserved(&self, key: &str, value: String) -> StorageResult<()>
fn put_preserved(&self, key: &str, value: String) -> StorageResult<()>
Preserve a migration input before a later checkpoint can replace it.
Buffered adapters must commit this write before returning success.
fn put_checkpoint( &self, key: &str, value: &StorageCheckpoint, ) -> StorageResult<()>
Auto Trait Implementations§
impl Freeze for InMemoryStorage
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnsafeUnpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
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