pub struct HashStatsInfo {
pub packages: usize,
pub updated_at: Option<String>,
pub stale: bool,
pub common_exact_hashes: usize,
pub common_fingerprints: usize,
pub incremental: bool,
pub pending_hashes: usize,
}Expand description
State of the statistics.
Fields§
§packages: usizePackages with at least one indexed file.
updated_at: Option<String>When the statistics were last rebuilt.
stale: boolWhether something was indexed after the last rebuild (or never rebuilt).
common_exact_hashes: usizeExact hashes found in two or more packages.
common_fingerprints: usizeFingerprints found in two or more packages.
incremental: boolWhether Database::refresh_hash_stats can recount only the hashes of
what was indexed since the last statistics. Not before the first
statistics, nor for a database upgraded while they were out of date.
pending_hashes: usizeHashes waiting to be recounted by an incremental refresh.
Trait Implementations§
Source§impl Clone for HashStatsInfo
impl Clone for HashStatsInfo
Source§impl Debug for HashStatsInfo
impl Debug for HashStatsInfo
Auto Trait Implementations§
impl Freeze for HashStatsInfo
impl RefUnwindSafe for HashStatsInfo
impl Send for HashStatsInfo
impl Sync for HashStatsInfo
impl Unpin for HashStatsInfo
impl UnsafeUnpin for HashStatsInfo
impl UnwindSafe for HashStatsInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more