pub struct FrameHeader {
pub descriptor: FrameDescriptor,
/* private fields */
}
Expand description
A frame header has a variable size, with a minimum of 2 bytes, and a maximum of 14 bytes.
Fields§
§descriptor: FrameDescriptor
Implementations§
Source§impl FrameHeader
impl FrameHeader
Sourcepub fn window_size(&self) -> Result<u64, FrameHeaderError>
pub fn window_size(&self) -> Result<u64, FrameHeaderError>
Read the size of the window from the header, returning the size in bytes.
Sourcepub fn dictionary_id(&self) -> Option<u32>
pub fn dictionary_id(&self) -> Option<u32>
The ID (if provided) of the dictionary required to decode this frame.
Sourcepub fn frame_content_size(&self) -> u64
pub fn frame_content_size(&self) -> u64
Obtain the uncompressed size (in bytes) of the frame contents.
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
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