pub struct DbStats {
pub total_entries: u32,
pub total_samples: u32,
pub used_sectors: u16,
pub free_sectors: u16,
pub reserved_sectors: u16,
pub min_erase_count: u32,
pub max_erase_count: u32,
pub total_erase_count: u64,
}Expand description
Statistics about the database state.
Fields§
§total_entries: u32Total number of valid entries across all sectors.
Entries, so a run counts once however many samples it
holds. This is what the log wrote and what replication moves;
total_samples is what a reader sees, and their
ratio is what run encoding bought.
total_samples: u32Total number of readable samples across all sectors.
What count(None) reports, and what a query
over the whole time range yields.
used_sectors: u16Number of sectors currently in use (active or sealed).
free_sectors: u16Number of erased sectors available.
reserved_sectors: u16Number of reserved sectors for headroom.
min_erase_count: u32Minimum erase count across all sectors.
max_erase_count: u32Maximum erase count across all sectors.
total_erase_count: u64Total erase count summed across all sectors.
Trait Implementations§
impl Copy for DbStats
Auto Trait Implementations§
impl Freeze for DbStats
impl RefUnwindSafe for DbStats
impl Send for DbStats
impl Sync for DbStats
impl Unpin for DbStats
impl UnsafeUnpin for DbStats
impl UnwindSafe for DbStats
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