pub struct LedgerCounts {
pub cache: Option<usize>,
pub asg: usize,
pub sidecar: Option<usize>,
pub missing_from_asg: usize,
pub missing_from_sidecar: usize,
}Expand description
Ledger entry counts in each store, plus the gaps between them.
Fields§
§cache: Option<usize>Rows in asd_ledger_cache for the ref. None when no cache is open.
asg: usizeEntries in the ASG ledger tree.
sidecar: Option<usize>Entry files under .asd/v1/ledger/. None when there is no sidecar.
missing_from_asg: usizeCached entries absent from ASG — lost writes. asd repair --fix
restores them.
missing_from_sidecar: usizeASG entries absent from the sidecar — asd sync has not run since.
Implementations§
Source§impl LedgerCounts
impl LedgerCounts
Trait Implementations§
Source§impl Clone for LedgerCounts
impl Clone for LedgerCounts
Source§impl Debug for LedgerCounts
impl Debug for LedgerCounts
Auto Trait Implementations§
impl Freeze for LedgerCounts
impl RefUnwindSafe for LedgerCounts
impl Send for LedgerCounts
impl Sync for LedgerCounts
impl Unpin for LedgerCounts
impl UnsafeUnpin for LedgerCounts
impl UnwindSafe for LedgerCounts
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