pub enum FrameSizeError {
Header(ReadFrameHeaderError),
Truncated,
ReservedBlock,
OversizedBlock,
}Expand description
Error from find_frame_compressed_size.
Variants§
Header(ReadFrameHeaderError)
The frame header could not be parsed.
Truncated
The buffer ends before the frame’s blocks (or trailing checksum) are complete.
ReservedBlock
A block declared the reserved block type, which is invalid per RFC 8878.
OversizedBlock
A block declared a Block_Size larger than the frame’s
Block_Maximum_Size (min(Window_Size, 128 KiB)), which is invalid per
RFC 8878 §3.1.1.2. Accepting it would let a corrupt frame pass a size
query and make the no-Frame_Content_Size decompressed-bound
under-count (each block can regenerate at most Block_Maximum_Size).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FrameSizeError
impl !UnwindSafe for FrameSizeError
impl Freeze for FrameSizeError
impl Send for FrameSizeError
impl Sync for FrameSizeError
impl Unpin for FrameSizeError
impl UnsafeUnpin for FrameSizeError
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