pub enum DistributedCommitOutcome {
Committed(DistributedCommitEpoch),
Aborted(DistributedCommitEpoch),
Indeterminate {
epoch: DistributedCommitEpoch,
phase: DistributedCommitPhase,
},
}Expand description
Honest rank-local observation of one globally identified commit attempt.
Variants§
Committed(DistributedCommitEpoch)
This rank observed the globally fixed all-success decision.
Aborted(DistributedCommitEpoch)
This rank observed the globally fixed abort decision before publication became final.
Indeterminate
The rank may have contributed, but could not observe the fixed final decision.
Fields
§
epoch: DistributedCommitEpochTransaction identity retained for recovery and diagnosis.
§
phase: DistributedCommitPhaseExact final decision cut whose outcome could not be observed.
Implementations§
Source§impl DistributedCommitOutcome
impl DistributedCommitOutcome
Sourcepub const fn epoch(self) -> DistributedCommitEpoch
pub const fn epoch(self) -> DistributedCommitEpoch
Transaction identity shared by every outcome variant.
Sourcepub const fn is_indeterminate(self) -> bool
pub const fn is_indeterminate(self) -> bool
Whether further use requires external recovery of the named epoch.
Trait Implementations§
Source§impl Clone for DistributedCommitOutcome
impl Clone for DistributedCommitOutcome
Source§fn clone(&self) -> DistributedCommitOutcome
fn clone(&self) -> DistributedCommitOutcome
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 DistributedCommitOutcome
Source§impl Debug for DistributedCommitOutcome
impl Debug for DistributedCommitOutcome
Source§impl<'de> Deserialize<'de> for DistributedCommitOutcome
impl<'de> Deserialize<'de> for DistributedCommitOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DistributedCommitOutcome
Source§impl Hash for DistributedCommitOutcome
impl Hash for DistributedCommitOutcome
Source§impl Ord for DistributedCommitOutcome
impl Ord for DistributedCommitOutcome
Source§fn cmp(&self, other: &DistributedCommitOutcome) -> Ordering
fn cmp(&self, other: &DistributedCommitOutcome) -> Ordering
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DistributedCommitOutcome
impl PartialEq for DistributedCommitOutcome
Source§impl PartialOrd for DistributedCommitOutcome
impl PartialOrd for DistributedCommitOutcome
Source§impl Serialize for DistributedCommitOutcome
impl Serialize for DistributedCommitOutcome
impl StructuralPartialEq for DistributedCommitOutcome
Auto Trait Implementations§
impl Freeze for DistributedCommitOutcome
impl RefUnwindSafe for DistributedCommitOutcome
impl Send for DistributedCommitOutcome
impl Sync for DistributedCommitOutcome
impl Unpin for DistributedCommitOutcome
impl UnsafeUnpin for DistributedCommitOutcome
impl UnwindSafe for DistributedCommitOutcome
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