pub struct WalManager { /* private fields */ }Expand description
Manages the Write-Ahead Log.
Implementations§
Source§impl WalManager
impl WalManager
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
Opens or creates a WAL file at the given path.
§Errors
Returns an error if the file cannot be opened or created.
Sourcepub fn record_count(&self) -> u64
pub fn record_count(&self) -> u64
Returns the number of records written.
Auto Trait Implementations§
impl !Freeze for WalManager
impl !RefUnwindSafe for WalManager
impl Send for WalManager
impl Sync for WalManager
impl Unpin for WalManager
impl UnwindSafe for WalManager
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