pub struct BinaryStore { /* private fields */ }Implementations§
Source§impl BinaryStore
impl BinaryStore
pub const fn path(&self) -> &PathBuf
pub fn new(path: &Path) -> Result<Self>
pub fn write_record(&mut self, kind: RecordKind, payload: &[u8]) -> Result<()>
pub fn flush_and_sync(&mut self) -> Result<()>
pub fn replay<F>(&self, callback: F) -> Result<()>
pub fn close(&mut self) -> Result<()>
Sourcepub fn reopen_truncated(&mut self) -> Result<()>
pub fn reopen_truncated(&mut self) -> Result<()>
Reopen the file with truncation — discards all existing records.
Used by compact to rewrite a fresh log from in-memory state.
Auto Trait Implementations§
impl Freeze for BinaryStore
impl RefUnwindSafe for BinaryStore
impl Send for BinaryStore
impl Sync for BinaryStore
impl Unpin for BinaryStore
impl UnsafeUnpin for BinaryStore
impl UnwindSafe for BinaryStore
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