pub struct VerifyOptions { /* private fields */ }Expand description
Options shared by verification and media integrity analysis.
Implementations§
Source§impl VerifyOptions
impl VerifyOptions
Sourcepub fn with_expected_md5(self, expected: [u8; 16]) -> Self
pub fn with_expected_md5(self, expected: [u8; 16]) -> Self
Compares media MD5 with an independently supplied reference.
Sourcepub fn with_expected_sha1(self, expected: [u8; 20]) -> Self
pub fn with_expected_sha1(self, expected: [u8; 20]) -> Self
Compares media SHA1 with an independently supplied reference.
Sourcepub fn with_expected_sha256(self, expected: [u8; 32]) -> Self
pub fn with_expected_sha256(self, expected: [u8; 32]) -> Self
Compares media SHA256 with an independently supplied reference.
Sourcepub fn with_parallelism(self, workers: usize) -> Self
pub fn with_parallelism(self, workers: usize) -> Self
Sets the worker limit (1 through 64); values above 1 require parallel.
Invalid settings return an error before a scan starts.
Sourcepub fn with_chunk_buffer_size_bytes(self, bytes: usize) -> Self
pub fn with_chunk_buffer_size_bytes(self, bytes: usize) -> Self
Sets the decoded batch budget. A chunk larger than this budget is processed alone. Encoded buffers, decoder scratch space, and existing reader caches are additional memory.
Sourcepub fn with_maximum_findings(self, count: usize) -> Self
pub fn with_maximum_findings(self, count: usize) -> Self
Limits retained analysis findings; suppressed findings are counted. Scanning continues after this limit is reached. Zero retains no findings.
Sourcepub fn parallelism(&self) -> usize
pub fn parallelism(&self) -> usize
Returns the requested worker limit.
Sourcepub fn chunk_buffer_size_bytes(&self) -> usize
pub fn chunk_buffer_size_bytes(&self) -> usize
Returns the decoded batch budget.
Sourcepub fn maximum_findings(&self) -> usize
pub fn maximum_findings(&self) -> usize
Returns the maximum number of retained analysis findings.
Trait Implementations§
Source§impl Clone for VerifyOptions
impl Clone for VerifyOptions
Source§impl Debug for VerifyOptions
impl Debug for VerifyOptions
Source§impl Default for VerifyOptions
impl Default for VerifyOptions
impl Eq for VerifyOptions
Source§impl PartialEq for VerifyOptions
impl PartialEq for VerifyOptions
impl StructuralPartialEq for VerifyOptions
Auto Trait Implementations§
impl Freeze for VerifyOptions
impl RefUnwindSafe for VerifyOptions
impl Send for VerifyOptions
impl Sync for VerifyOptions
impl Unpin for VerifyOptions
impl UnsafeUnpin for VerifyOptions
impl UnwindSafe for VerifyOptions
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<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> ⓘ
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> ⓘ
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