pub enum StrongResult {
Committed,
Rejected(RejectReason),
Unavailable(UnavailableReason),
}Expand description
The result of a strong op. Committed/Rejected mean the quorum was reached
and gave a definitive, linearizable answer; Unavailable means it was not
reached and nothing was committed.
Variants§
Committed
Rejected(RejectReason)
Implementations§
Source§impl StrongResult
impl StrongResult
pub fn is_committed(&self) -> bool
Sourcepub fn is_linearizable(&self) -> bool
pub fn is_linearizable(&self) -> bool
Whether the quorum was reached (a definitive answer, committed or refused).
Sourcepub fn consistency(&self) -> Outcome
pub fn consistency(&self) -> Outcome
Map to the honesty contract’s consistency level: a reached quorum is
Committed(Strong) (linearizably decided); otherwise Unavailable.
Trait Implementations§
Source§impl Clone for StrongResult
impl Clone for StrongResult
Source§fn clone(&self) -> StrongResult
fn clone(&self) -> StrongResult
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 moreSource§impl Debug for StrongResult
impl Debug for StrongResult
impl Eq for StrongResult
Source§impl PartialEq for StrongResult
impl PartialEq for StrongResult
impl StructuralPartialEq for StrongResult
Auto Trait Implementations§
impl Freeze for StrongResult
impl RefUnwindSafe for StrongResult
impl Send for StrongResult
impl Sync for StrongResult
impl Unpin for StrongResult
impl UnsafeUnpin for StrongResult
impl UnwindSafe for StrongResult
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