pub struct FaultEvidence { /* private fields */ }Expand description
Framework evidence about one failed unit of work.
The runtime proves these properties before a policy may accept a skip. The values describe framework bookkeeping only; they carry no item value.
Implementations§
Source§impl FaultEvidence
impl FaultEvidence
Sourcepub const NONE: FaultEvidence
pub const NONE: FaultEvidence
Evidence for a fault whose failed unit is not located.
Sourcepub const fn new(
located: bool,
known_rollback: bool,
forward_checkpoint_proof: bool,
) -> FaultEvidence
pub const fn new( located: bool, known_rollback: bool, forward_checkpoint_proof: bool, ) -> FaultEvidence
Constructs complete skip evidence.
Sourcepub const fn with_located(self, located: bool) -> FaultEvidence
pub const fn with_located(self, located: bool) -> FaultEvidence
Records that exactly one failed input or output ordinal is identified.
Sourcepub const fn with_known_rollback(self, known_rollback: bool) -> FaultEvidence
pub const fn with_known_rollback(self, known_rollback: bool) -> FaultEvidence
Records that the failed work left no visible external effect.
Sourcepub const fn with_forward_checkpoint_proof(self, proof: bool) -> FaultEvidence
pub const fn with_forward_checkpoint_proof(self, proof: bool) -> FaultEvidence
Records that the reader proved its checkpoint moved past the input.
Sourcepub const fn is_located(self) -> bool
pub const fn is_located(self) -> bool
Returns whether exactly one failed unit is identified.
Sourcepub const fn is_known_rollback(self) -> bool
pub const fn is_known_rollback(self) -> bool
Returns whether the failed work is known to have been rolled back.
Sourcepub const fn has_forward_checkpoint_proof(self) -> bool
pub const fn has_forward_checkpoint_proof(self) -> bool
Returns whether forward checkpoint progress is proven.
Trait Implementations§
Source§impl Clone for FaultEvidence
impl Clone for FaultEvidence
Source§fn clone(&self) -> FaultEvidence
fn clone(&self) -> FaultEvidence
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 FaultEvidence
Source§impl Debug for FaultEvidence
impl Debug for FaultEvidence
Source§impl Default for FaultEvidence
impl Default for FaultEvidence
Source§fn default() -> FaultEvidence
fn default() -> FaultEvidence
Returns the “default value” for a type. Read more
impl Eq for FaultEvidence
Source§impl Hash for FaultEvidence
impl Hash for FaultEvidence
Source§impl Ord for FaultEvidence
impl Ord for FaultEvidence
Source§fn cmp(&self, other: &FaultEvidence) -> Ordering
fn cmp(&self, other: &FaultEvidence) -> 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
Source§impl PartialEq for FaultEvidence
impl PartialEq for FaultEvidence
Source§impl PartialOrd for FaultEvidence
impl PartialOrd for FaultEvidence
impl StructuralPartialEq for FaultEvidence
Auto Trait Implementations§
impl Freeze for FaultEvidence
impl RefUnwindSafe for FaultEvidence
impl Send for FaultEvidence
impl Sync for FaultEvidence
impl Unpin for FaultEvidence
impl UnsafeUnpin for FaultEvidence
impl UnwindSafe for FaultEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more