#[non_exhaustive]pub enum IntegrityCheck {
Skip,
DecodeToEof(DecompressionBudget),
}Expand description
Whether verify checks payload integrity.
A budget without the check is unrepresentable: the budget lives inside the
DecodeToEof variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Skip
Metadata-only verification (the default).
DecodeToEof(DecompressionBudget)
Decode payload to the decoder’s EOF so checksums and codec framing are verified, spending at most the given budget on extra decoding.
Trait Implementations§
Source§impl Clone for IntegrityCheck
impl Clone for IntegrityCheck
impl Copy for IntegrityCheck
Source§impl Debug for IntegrityCheck
impl Debug for IntegrityCheck
Source§impl Default for IntegrityCheck
impl Default for IntegrityCheck
impl Eq for IntegrityCheck
Source§impl PartialEq for IntegrityCheck
impl PartialEq for IntegrityCheck
impl StructuralPartialEq for IntegrityCheck
Auto Trait Implementations§
impl Freeze for IntegrityCheck
impl RefUnwindSafe for IntegrityCheck
impl Send for IntegrityCheck
impl Sync for IntegrityCheck
impl Unpin for IntegrityCheck
impl UnsafeUnpin for IntegrityCheck
impl UnwindSafe for IntegrityCheck
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.