pub struct WriteAheadLog { /* private fields */ }Expand description
Write-ahead log backed by a JSONL file for audit and crash recovery.
Implementations§
Source§impl WriteAheadLog
impl WriteAheadLog
Sourcepub fn new(base_dir: &Path) -> Self
pub fn new(base_dir: &Path) -> Self
Create a new WAL that writes to write_log.jsonl inside base_dir.
Sourcepub fn default_path() -> PathBuf
pub fn default_path() -> PathBuf
Return the default WAL directory (~/.aegis/wal).
Sourcepub fn with_default_path() -> Self
pub fn with_default_path() -> Self
Create a WAL using the default path (~/.aegis/wal).
Auto Trait Implementations§
impl Freeze for WriteAheadLog
impl RefUnwindSafe for WriteAheadLog
impl Send for WriteAheadLog
impl Sync for WriteAheadLog
impl Unpin for WriteAheadLog
impl UnsafeUnpin 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