pub struct SyncStats {
pub unchanged: usize,
pub read: usize,
pub changed: usize,
pub removed: usize,
pub queries: u64,
pub held: usize,
}Expand description
SyncStats holds the counts of a run, for tests and diagnostics: what
the sync found, and the work that the run did against the store
(contract-cache CACHE-3_AC-4).
Fields§
§unchanged: usizeThe number of files that the sync judged unchanged by their stat, without reading them. With a hint, the sync judges only the files at or under the hinted paths.
read: usizeThe number of files that the run read.
changed: usizeThe number of files that the run read and found new, or whose hash differs from the hash in the store.
removed: usizeThe number of files in the store that the walk no longer lists.
queries: u64The number of statements that the run ran against the store: each
run of a statement or of a batch counts as one, whatever number of
rows it reads or writes. The count
includes the statements of each StoreView, the view of the store
that Cache::view opens for the documents that the run doesn’t
hold.
held: usizeThe number of file rows that the sync holds in memory: one for each file that the run must read. The files that the run has already read are among these (CACHE-3_AC-2).
Trait Implementations§
impl Copy for SyncStats
impl Eq for SyncStats
impl StructuralPartialEq for SyncStats
Auto Trait Implementations§
impl Forget for SyncStats
impl Freeze for SyncStats
impl Move for SyncStats
impl RefUnwindSafe for SyncStats
impl Send for SyncStats
impl Sync for SyncStats
impl Unpin for SyncStats
impl UnsafeUnpin for SyncStats
impl UnwindSafe for SyncStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.