pub enum DurabilityMode {
Derived,
Durable,
Attached,
}Expand description
Selects whether this store must make acknowledged writes durable on its own.
The default is Derived. In that mode CommitTier is
ignored and no synchronization primitive is issued at any tier. An
application crash or process kill does not lose acknowledged writes because
the operating-system page cache retains them and writes them out afterward.
A power cut or kernel panic can lose recently acknowledged writes. Recovery
truncates the log at the first record whose checksum fails, so the store
remains structurally valid: the failure is a missing recent tail, never
silently wrong data.
Selecting Derived asserts that another store is authoritative and this
store can be rebuilt from it. A caller for whom this store is the only copy
of the data must select Durable explicitly.
Variants§
Derived
The default: another store is authoritative, this store is rebuildable,
and synchronization is skipped regardless of CommitTier.
Durable
This store is the source of truth and applies the selected CommitTier.
Attached
Participates in a host transaction; v1 returns a typed unsupported error.
Trait Implementations§
Source§impl Clone for DurabilityMode
impl Clone for DurabilityMode
Source§fn clone(&self) -> DurabilityMode
fn clone(&self) -> DurabilityMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more