pub struct DeltaLog<L> { /* private fields */ }Expand description
Single-span delta encoding with at most interval-1 consecutive deltas. Compress complete snapshots; logical change records pass through unchanged. Inner resources/fencing remain caller-owned. Mutation errors require reopen.
Implementations§
Trait Implementations§
Source§impl<L: ReplaceableTransitionLogStore> ReplaceableTransitionLogStore for DeltaLog<L>
impl<L: ReplaceableTransitionLogStore> ReplaceableTransitionLogStore for DeltaLog<L>
Source§fn supports_replacement(&self) -> bool
fn supports_replacement(&self) -> bool
Dynamic adapters can expose the capability only when their inner log can.
Source§impl<L: TransitionLogStore> TransitionLogStore for DeltaLog<L>
impl<L: TransitionLogStore> TransitionLogStore for DeltaLog<L>
Source§fn supports_durable_flush(&self) -> bool
fn supports_durable_flush(&self) -> bool
Whether flush requests persistent storage. Custom/volatile logs default
to false; this describes an adapter, not the reliability of its hardware.
Source§fn read_log_entries(&mut self) -> Result<Vec<String>, LinkError>
fn read_log_entries(&mut self) -> Result<Vec<String>, LinkError>
Reads every entry back, oldest first.
Source§fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
Appends one entry. Entries never contain newlines.
Source§fn supports_compaction(&self) -> bool
fn supports_compaction(&self) -> bool
Whether
compact_log_entries can rewrite
the durable journal. Retention uses it to bound the journal on disk;
logs without it keep every entry, as before.Source§fn compact_log_entries(&mut self, entries: &[String]) -> Result<(), LinkError>
fn compact_log_entries(&mut self, entries: &[String]) -> Result<(), LinkError>
Atomically and durably replaces every entry with
entries, the
retained journal. After a crash the log holds either the old or the
new journal, never a mixture. Called only between transactions and
only when supports_compaction is true.Auto Trait Implementations§
impl<L> Freeze for DeltaLog<L>where
L: Freeze,
impl<L> RefUnwindSafe for DeltaLog<L>where
L: RefUnwindSafe,
impl<L> Send for DeltaLog<L>where
L: Send,
impl<L> Sync for DeltaLog<L>where
L: Sync,
impl<L> Unpin for DeltaLog<L>where
L: Unpin,
impl<L> UnsafeUnpin for DeltaLog<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for DeltaLog<L>where
L: UnwindSafe,
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