Enum SnapshotConsistency
pub enum SnapshotConsistency {
Atomic,
BestEffort,
}Expand description
The consistency guarantee attached to a StorageSnapshot.
Exact built-in backends (Memory, Journal, and SQLite) return
Atomic: trial deltas, requested state, and outbox records
came from one backend read epoch. A remote wrapper preserves that marker
only when its wrapped backend does; a remote wrapper around a
source-compatible custom backend remains BestEffort.
The default Storage::read_snapshot
implementation preserves third-party source compatibility through separate
reads and therefore returns BestEffort. Callers must
not present that result as an atomic observation.
Variants§
Atomic
Every returned component came from one backend linearization point.
BestEffort
Components were read sequentially and can span concurrent writes.
Trait Implementations§
§impl Clone for SnapshotConsistency
impl Clone for SnapshotConsistency
§fn clone(&self) -> SnapshotConsistency
fn clone(&self) -> SnapshotConsistency
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 moreimpl Copy for SnapshotConsistency
§impl Debug for SnapshotConsistency
impl Debug for SnapshotConsistency
impl Eq for SnapshotConsistency
§impl PartialEq for SnapshotConsistency
impl PartialEq for SnapshotConsistency
impl StructuralPartialEq for SnapshotConsistency
Auto Trait Implementations§
impl Freeze for SnapshotConsistency
impl RefUnwindSafe for SnapshotConsistency
impl Send for SnapshotConsistency
impl Sync for SnapshotConsistency
impl Unpin for SnapshotConsistency
impl UnsafeUnpin for SnapshotConsistency
impl UnwindSafe for SnapshotConsistency
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