#[non_exhaustive]pub struct VerificationOptions {
pub integrity: IntegrityCheck,
}Expand description
Options controlling verify behavior.
§Examples
use exarch_core::DecompressionBudget;
use exarch_core::IntegrityCheck;
use exarch_core::VerificationOptions;
let options = VerificationOptions::default();
assert_eq!(options.integrity, IntegrityCheck::Skip);
let options = options.with_integrity(IntegrityCheck::DecodeToEof(DecompressionBudget::DEFAULT));
assert_ne!(options.integrity, IntegrityCheck::Skip);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.integrity: IntegrityCheckPayload integrity check mode.
Implementations§
Source§impl VerificationOptions
impl VerificationOptions
Sourcepub fn with_integrity(self, integrity: IntegrityCheck) -> Self
pub fn with_integrity(self, integrity: IntegrityCheck) -> Self
Sets the payload integrity check mode.
Trait Implementations§
Source§impl Clone for VerificationOptions
impl Clone for VerificationOptions
impl Copy for VerificationOptions
Source§impl Debug for VerificationOptions
impl Debug for VerificationOptions
Auto Trait Implementations§
impl Freeze for VerificationOptions
impl RefUnwindSafe for VerificationOptions
impl Send for VerificationOptions
impl Sync for VerificationOptions
impl Unpin for VerificationOptions
impl UnsafeUnpin for VerificationOptions
impl UnwindSafe for VerificationOptions
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