pub struct WriteAheadLog { /* private fields */ }Implementations§
Source§impl WriteAheadLog
impl WriteAheadLog
pub fn open<P: AsRef<Path>>(db_path: P) -> Result<Self>
pub fn log_put(&self, key: &[u8], value: &[u8]) -> Result<()>
pub fn log_delete(&self, key: &[u8]) -> Result<()>
pub fn checkpoint(&self) -> Result<()>
pub fn replay<F>(&self, apply: F) -> Result<()>
pub fn truncate(&self) -> Result<()>
pub fn flush(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for WriteAheadLog
impl !RefUnwindSafe for WriteAheadLog
impl Send for WriteAheadLog
impl Sync for WriteAheadLog
impl Unpin for WriteAheadLog
impl UnwindSafe for WriteAheadLog
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