pub struct CacheReport {
pub checked: usize,
pub corrupt: Vec<String>,
pub purged: Vec<String>,
}Expand description
Outcome of a whole-cache scan by verify_cache.
Fields§
§checked: usizeNumber of objects scanned (every .objects/*/*/*/* entry).
corrupt: Vec<String>Content addresses (expected checksums) whose cached bytes did not hash back to the address — i.e. corrupt or tampered objects.
purged: Vec<String>Content addresses that were deleted because purge was set (a subset of
corrupt; empty when purge is false).
Implementations§
Trait Implementations§
Source§impl Clone for CacheReport
impl Clone for CacheReport
Source§fn clone(&self) -> CacheReport
fn clone(&self) -> CacheReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheReport
impl Debug for CacheReport
Source§impl Default for CacheReport
impl Default for CacheReport
Source§fn default() -> CacheReport
fn default() -> CacheReport
Returns the “default value” for a type. Read more
impl Eq for CacheReport
Source§impl PartialEq for CacheReport
impl PartialEq for CacheReport
Source§fn eq(&self, other: &CacheReport) -> bool
fn eq(&self, other: &CacheReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheReport
Auto Trait Implementations§
impl Freeze for CacheReport
impl RefUnwindSafe for CacheReport
impl Send for CacheReport
impl Sync for CacheReport
impl Unpin for CacheReport
impl UnsafeUnpin for CacheReport
impl UnwindSafe for CacheReport
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