Skip to main content

Tally

Struct Tally 

Source
struct Tally {
Show 13 fields segments: u64, seals_broken: Vec<String>, chain_breaks: Vec<String>, lineage_switches: Vec<String>, missing_total: u64, missing_suspicious: Vec<String>, records: u64, valid: u64, failures: BTreeMap<String, (u64, Vec<String>)>, index_mismatch: u64, keys: HashSet<Vec<u8>>, full: u64, partial: u64,
}

Fields§

§segments: u64§seals_broken: Vec<String>§chain_breaks: Vec<String>§lineage_switches: Vec<String>

Switches between numberings: not an error, but they should be visible.

§missing_total: u64§missing_suspicious: Vec<String>

Gaps longer than a thousand ledgers are almost certainly not downtime but an accounting error; shown separately.

§records: u64§valid: u64§failures: BTreeMap<String, (u64, Vec<String>)>

Reason -> count and examples.

§index_mismatch: u64§keys: HashSet<Vec<u8>>§full: u64§partial: u64

Implementations§

Source§

impl Tally

Source

fn fail(&mut self, reason: String, example: String, keep: usize)

Trait Implementations§

Source§

impl Default for Tally

Source§

fn default() -> Tally

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Tally

§

impl RefUnwindSafe for Tally

§

impl Send for Tally

§

impl Sync for Tally

§

impl Unpin for Tally

§

impl UnsafeUnpin for Tally

§

impl UnwindSafe for Tally

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.