pub struct EwfIntegrity<'a> { /* private fields */ }Implementations§
Source§impl<'a> EwfIntegrity<'a>
impl<'a> EwfIntegrity<'a>
Sourcepub fn from_segments(segs: &[&'a [u8]]) -> Self
pub fn from_segments(segs: &[&'a [u8]]) -> Self
Analyse a multi-segment image. Pass segments in order: E01, E02, E03 …
Sourcepub fn with_expected_md5(self, hash: [u8; 16]) -> Self
pub fn with_expected_md5(self, hash: [u8; 16]) -> Self
Compare the computed MD5 against an externally-sourced reference
(e.g., a chain-of-custody form). Mismatch → ExternalMd5Mismatch (Critical).
Sourcepub fn with_expected_sha1(self, hash: [u8; 20]) -> Self
pub fn with_expected_sha1(self, hash: [u8; 20]) -> Self
Compare the computed SHA-1 against an externally-sourced reference.
Mismatch → ExternalSha1Mismatch (Critical).
pub fn analyse(&self) -> Vec<EwfIntegrityAnomaly>
Auto Trait Implementations§
impl<'a> Freeze for EwfIntegrity<'a>
impl<'a> RefUnwindSafe for EwfIntegrity<'a>
impl<'a> Send for EwfIntegrity<'a>
impl<'a> Sync for EwfIntegrity<'a>
impl<'a> Unpin for EwfIntegrity<'a>
impl<'a> UnsafeUnpin for EwfIntegrity<'a>
impl<'a> UnwindSafe for EwfIntegrity<'a>
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