pub struct Ledger {
pub total: usize,
pub would_block: usize,
pub commits: usize,
pub first: Option<u64>,
pub last: Option<u64>,
pub by_check: Vec<CheckCount>,
}Expand description
What the ledger says, aggregated. Everything a reader displays comes through here; nobody re-parses the file.
Fields§
§total: usizeEvents on record (a floor after compaction).
would_block: usizeOf those, the ones that would have blocked but for an override.
commits: usizeDISTINCT commits those events happened against.
Not the same fact as total, and the difference is the one a reader
most needs: forty commits each tripping a check once is a check the
team disagrees with, while one commit tripping it forty times is one
person losing an afternoon to it. Counting only events conflates them.
first: Option<u64>The oldest event’s epoch — “since when” for the report.
last: Option<u64>The newest event’s epoch, if any.
by_check: Vec<CheckCount>Count descending, then check ascending — a stable order a golden render can pin.
Trait Implementations§
impl Eq for Ledger
impl StructuralPartialEq for Ledger
Auto Trait Implementations§
impl Freeze for Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnsafeUnpin for Ledger
impl UnwindSafe for Ledger
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