pub enum AppendLogMode {
Append,
Overwrite,
}Expand description
D269 — Persistence mode (memo:Re P1 parity). Mirrors TS
AppendLogStorageOptions.mode. Append (default) reads existing
bucket bytes, decodes, merges new entries, encodes, writes back —
the M4.B behavior. Overwrite skips the read/merge entirely and
snapshots the current batch as the bucket’s full contents. Used
for callers that ship full snapshots per wave (e.g. WAL replay
drivers) rather than deltas. Feeding deltas into an Overwrite
tier silently truncates the log to the last batch — attach_storage
rejects overwrite sinks at attachment time.
Variants§
Append
Read existing bucket, merge new entries, write back. M4.B default.
Overwrite
Replace bucket contents with the current batch (no read-merge).
Trait Implementations§
Source§impl Clone for AppendLogMode
impl Clone for AppendLogMode
Source§fn clone(&self) -> AppendLogMode
fn clone(&self) -> AppendLogMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppendLogMode
impl Debug for AppendLogMode
Source§impl Default for AppendLogMode
impl Default for AppendLogMode
Source§fn default() -> AppendLogMode
fn default() -> AppendLogMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for AppendLogMode
impl PartialEq for AppendLogMode
Source§fn eq(&self, other: &AppendLogMode) -> bool
fn eq(&self, other: &AppendLogMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AppendLogMode
impl Eq for AppendLogMode
impl StructuralPartialEq for AppendLogMode
Auto Trait Implementations§
impl Freeze for AppendLogMode
impl RefUnwindSafe for AppendLogMode
impl Send for AppendLogMode
impl Sync for AppendLogMode
impl Unpin for AppendLogMode
impl UnsafeUnpin for AppendLogMode
impl UnwindSafe for AppendLogMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.