pub enum Level {
InMemory,
Persisted,
}Expand description
Durability level a single node can be at for a given sequence.
Ordered from weakest to strongest — Persisted >= InMemory always
holds for any given cursor pair on a single node, since persisting
is downstream of receiving in the pipeline. The Ord derive reflects
this and lets evaluation code treat a higher-level cursor as also
satisfying any lower-level requirement on the same node.
Variants§
InMemory
Event has been accepted into the node’s pipeline. No durability guarantee — process crash or power loss loses it.
Persisted
Event has been written to NVMe via O_DIRECT pwrite. With
PLP-backed devices this survives power loss without an explicit
fsync.
Implementations§
Trait Implementations§
Source§impl Ord for Level
impl Ord for Level
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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