pub struct FileStorage { /* private fields */ }Expand description
File-based storage backend for native file operations
Implementations§
Trait Implementations§
Source§impl Storage for FileStorage
impl Storage for FileStorage
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 FileStorage
impl RefUnwindSafe for FileStorage
impl Send for FileStorage
impl Sync for FileStorage
impl Unpin for FileStorage
impl UnsafeUnpin for FileStorage
impl UnwindSafe for FileStorage
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