#[non_exhaustive]pub struct HashVerifyReport {
pub files: BTreeMap<PathBuf, FileVerifyOutcome>,
}Expand description
Structured outcome of a HashVerifier::execute run.
One entry per file the caller registered via HashVerifier::expect.
Iteration order is by PathBuf ordering (the underlying BTreeMap).
#[non_exhaustive]: future per-run aggregate fields may be added.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.files: BTreeMap<PathBuf, FileVerifyOutcome>Per-file outcome, keyed by the absolute path the caller registered.
Implementations§
Source§impl HashVerifyReport
impl HashVerifyReport
Sourcepub fn failures(&self) -> impl Iterator<Item = (&Path, &FileVerifyOutcome)>
pub fn failures(&self) -> impl Iterator<Item = (&Path, &FileVerifyOutcome)>
Iterate the failing files (everything that is not FileVerifyOutcome::Match).
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
Count of failing files.
Trait Implementations§
Source§impl Clone for HashVerifyReport
impl Clone for HashVerifyReport
Source§fn clone(&self) -> HashVerifyReport
fn clone(&self) -> HashVerifyReport
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 HashVerifyReport
impl Debug for HashVerifyReport
Source§impl Default for HashVerifyReport
impl Default for HashVerifyReport
Source§fn default() -> HashVerifyReport
fn default() -> HashVerifyReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for HashVerifyReport
impl PartialEq for HashVerifyReport
Source§fn eq(&self, other: &HashVerifyReport) -> bool
fn eq(&self, other: &HashVerifyReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HashVerifyReport
impl StructuralPartialEq for HashVerifyReport
Auto Trait Implementations§
impl Freeze for HashVerifyReport
impl RefUnwindSafe for HashVerifyReport
impl Send for HashVerifyReport
impl Sync for HashVerifyReport
impl Unpin for HashVerifyReport
impl UnsafeUnpin for HashVerifyReport
impl UnwindSafe for HashVerifyReport
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