pub struct MemoryStorage { /* private fields */ }Expand description
In-memory storage backend for testing
Implementations§
Source§impl MemoryStorage
impl MemoryStorage
Trait Implementations§
Source§impl Default for MemoryStorage
impl Default for MemoryStorage
Source§impl Storage for MemoryStorage
impl Storage for MemoryStorage
Source§fn checkpoint(&mut self, state: &CheckpointData) -> Result<()>
fn checkpoint(&mut self, state: &CheckpointData) -> Result<()>
Create a checkpoint of the current state
Source§fn read_checkpoint(&self) -> Result<Option<CheckpointData>>
fn read_checkpoint(&self) -> Result<Option<CheckpointData>>
Read the latest checkpoint if it exists
Source§fn compact(&mut self) -> Result<()>
fn compact(&mut self) -> Result<()>
Compact the storage by merging checkpoint and delta operations
Source§fn storage_type(&self) -> &'static str
fn storage_type(&self) -> &'static str
Get the storage backend type name (for debugging/runtime info)
Auto Trait Implementations§
impl Freeze for MemoryStorage
impl RefUnwindSafe for MemoryStorage
impl Send for MemoryStorage
impl Sync for MemoryStorage
impl Unpin for MemoryStorage
impl UnsafeUnpin for MemoryStorage
impl UnwindSafe for MemoryStorage
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