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 fn new(
located: bool,
known_rollback: bool,
forward_checkpoint_proof: bool,
) -> Self
pub const fn new( located: bool, known_rollback: bool, forward_checkpoint_proof: bool, ) -> Self
Constructs complete skip evidence.
Sourcepub const fn with_located(self, located: bool) -> Self
pub const fn with_located(self, located: bool) -> Self
Records that exactly one failed input or output ordinal is identified.
Sourcepub const fn with_known_rollback(self, known_rollback: bool) -> Self
pub const fn with_known_rollback(self, known_rollback: bool) -> Self
Records that the failed work left no visible external effect.
Sourcepub const fn with_forward_checkpoint_proof(self, proof: bool) -> Self
pub const fn with_forward_checkpoint_proof(self, proof: bool) -> Self
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