pub struct AOF { /* private fields */ }Expand description
This struct represents an Append-only File (AOF) for persistent storage
Implementations§
Source§impl AOF
impl AOF
Sourcepub async fn new(filedir: String) -> Self
pub async fn new(filedir: String) -> Self
Opens an existing AOF file or creates a new one at the specified path
pub async fn on_event<K, V>(&self, r: AOFRecord<K, V>, flush: bool)
pub async fn on_event_multi<K, V>( &self, records: Vec<AOFRecord<K, V>>, flush: bool, )
pub async fn flush(&mut self)
pub async fn into_iter(&self) -> Result<AOFIterator>
Auto Trait Implementations§
impl !Freeze for AOF
impl !RefUnwindSafe for AOF
impl Send for AOF
impl Sync for AOF
impl Unpin for AOF
impl !UnwindSafe for AOF
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