#[non_exhaustive]pub enum DeclaredSizeFailure {
Read(Error),
Allocation,
Short(u64),
Long,
}Expand description
Why an entry’s inflated stream was refused.
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.
Read(Error)
The reader or inflater failed, including a CRC mismatch.
Allocation
The declared size does not fit in memory on this platform.
Short(u64)
The stream ended after this many bytes, before the declared size.
Long
The stream produced more bytes than declared or than the bound allows.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeclaredSizeFailure
impl !UnwindSafe for DeclaredSizeFailure
impl Freeze for DeclaredSizeFailure
impl Send for DeclaredSizeFailure
impl Sync for DeclaredSizeFailure
impl Unpin for DeclaredSizeFailure
impl UnsafeUnpin for DeclaredSizeFailure
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