pub struct DebouncedFileStorage { /* private fields */ }Implementations§
Source§impl DebouncedFileStorage
impl DebouncedFileStorage
pub fn new(base_path: PathBuf, flush_interval_ms: u64) -> StorageResult<Self>
pub fn flush(&self) -> StorageResult<()>
Trait Implementations§
Source§impl StorageAdapter for DebouncedFileStorage
impl StorageAdapter for DebouncedFileStorage
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>>
fn put_checkpoint( &self, key: &str, value: &StorageCheckpoint, ) -> StorageResult<()>
Auto Trait Implementations§
impl !Freeze for DebouncedFileStorage
impl RefUnwindSafe for DebouncedFileStorage
impl Send for DebouncedFileStorage
impl Sync for DebouncedFileStorage
impl Unpin for DebouncedFileStorage
impl UnsafeUnpin for DebouncedFileStorage
impl UnwindSafe for DebouncedFileStorage
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