pub enum CommitOutcome {
Applied {
high_water: u64,
},
Ignored(IgnoreReason),
}Expand description
The result of a try_commit_window_extension that passed range validation.
A commit either raises the durable bound or is dropped for one of three
benign, expected reasons. Collapsing both into Ok(()) left a caller that
just paid for a persist_high_water round-trip unable to tell “I raised the
bound” from “I silently dropped your durably-persisted value.” This type
preserves the distinction so the server can log/metric the dropped commits —
a leading indicator of epoch churn or persist reordering.
Variants§
Applied
The durable bound advanced to high_water.
Ignored(IgnoreReason)
The bound did not move; see IgnoreReason for why.
Trait Implementations§
Source§impl Clone for CommitOutcome
impl Clone for CommitOutcome
Source§fn clone(&self) -> CommitOutcome
fn clone(&self) -> CommitOutcome
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 CommitOutcome
Source§impl Debug for CommitOutcome
impl Debug for CommitOutcome
impl Eq for CommitOutcome
Source§impl PartialEq for CommitOutcome
impl PartialEq for CommitOutcome
Source§fn eq(&self, other: &CommitOutcome) -> bool
fn eq(&self, other: &CommitOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommitOutcome
Auto Trait Implementations§
impl Freeze for CommitOutcome
impl RefUnwindSafe for CommitOutcome
impl Send for CommitOutcome
impl Sync for CommitOutcome
impl Unpin for CommitOutcome
impl UnsafeUnpin for CommitOutcome
impl UnwindSafe for CommitOutcome
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