pub struct TrailReport {
pub marks: Vec<MarkReport>,
pub commitments_checked: bool,
pub walk_error: Option<String>,
pub verdict: TrailVerdict,
}Expand description
The result of verifying a trail: one MarkReport per mark and a
TrailVerdict.
Fields§
§marks: Vec<MarkReport>Per-mark results, in trail order.
commitments_checked: boolWhether the output keys were recomputed (the trail could be walked).
walk_error: Option<String>Why the commitments could not be checked, when they were not.
verdict: TrailVerdictThe summary verdict.
Implementations§
Source§impl TrailReport
impl TrailReport
Sourcepub fn ok_count(&self) -> usize
pub fn ok_count(&self) -> usize
Marks counted as good (MarkStatus::is_ok).
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Marks still pending (MarkStatus::is_pending).
Sourcepub fn bad_count(&self) -> usize
pub fn bad_count(&self) -> usize
Marks that failed (MarkStatus::is_bad).
Sourcepub fn commit_ok_count(&self) -> usize
pub fn commit_ok_count(&self) -> usize
Outputs found to be the recomputed key.
Sourcepub fn commit_bad_count(&self) -> usize
pub fn commit_bad_count(&self) -> usize
Outputs found not to be the recomputed key.
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Whether the verdict is TrailVerdict::Verified.
Sourcepub fn is_intact(&self) -> bool
pub fn is_intact(&self) -> bool
Whether every mark was found, commits to its state and spends its predecessor, with no failure anywhere: a verified trail, or one whose newest marks are still in the mempool.
Sourcepub fn first_failure(&self) -> Option<&MarkReport>
pub fn first_failure(&self) -> Option<&MarkReport>
The first mark that is not good, if any.
Trait Implementations§
Source§impl Clone for TrailReport
impl Clone for TrailReport
Source§impl Debug for TrailReport
impl Debug for TrailReport
Source§impl<'de> Deserialize<'de> for TrailReport
impl<'de> Deserialize<'de> for TrailReport
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 TrailReport
Source§impl PartialEq for TrailReport
impl PartialEq for TrailReport
Source§impl Serialize for TrailReport
impl Serialize for TrailReport
impl StructuralPartialEq for TrailReport
Auto Trait Implementations§
impl Freeze for TrailReport
impl RefUnwindSafe for TrailReport
impl Send for TrailReport
impl Sync for TrailReport
impl Unpin for TrailReport
impl UnsafeUnpin for TrailReport
impl UnwindSafe for TrailReport
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