pub struct FrameHeader {
pub descriptor: FrameDescriptor,
pub window_size: usize,
pub dictionary_id: u32,
pub frame_content_size: Option<u64>,
pub has_checksum: bool,
pub header_size: usize,
}Expand description
Parsed Zstd frame header.
Fields§
§descriptor: FrameDescriptorFrame descriptor.
window_size: usizeWindow size in bytes.
dictionary_id: u32Dictionary ID (0 if not present).
frame_content_size: Option<u64>Frame content size (None if not present).
has_checksum: boolWhether content checksum is present.
header_size: usizeTotal header size in bytes (including magic number).
Implementations§
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
Source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameHeader
impl Debug for FrameHeader
Source§impl PartialEq for FrameHeader
impl PartialEq for FrameHeader
impl Eq for FrameHeader
impl StructuralPartialEq for FrameHeader
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