#[non_exhaustive]pub struct GzipHeaderFields {
pub flags: u8,
pub modification_time: u32,
pub extra_flags: u8,
pub operating_system: u8,
pub file_name: Option<Vec<u8>>,
pub comment: Option<Vec<u8>>,
pub extra: Option<Vec<u8>>,
pub header_crc16: Option<u16>,
pub bgzf_block_size: Option<u16>,
}Expand description
Complete gzip header metadata for one member.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.flags: u8RFC 1952 flag byte.
modification_time: u32Modification time, or zero when unspecified.
extra_flags: u8Compressor hint byte (XFL).
operating_system: u8Originating operating-system code.
file_name: Option<Vec<u8>>Original file name without its terminating zero.
comment: Option<Vec<u8>>Comment without its terminating zero.
extra: Option<Vec<u8>>Complete extra-field payload.
header_crc16: Option<u16>Stored and verified optional header CRC16.
bgzf_block_size: Option<u16>BGZF BC block-size value when a well-formed subfield was present.
Trait Implementations§
Source§impl Clone for GzipHeaderFields
impl Clone for GzipHeaderFields
Source§fn clone(&self) -> GzipHeaderFields
fn clone(&self) -> GzipHeaderFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GzipHeaderFields
impl Debug for GzipHeaderFields
Source§impl Default for GzipHeaderFields
impl Default for GzipHeaderFields
Source§fn default() -> GzipHeaderFields
fn default() -> GzipHeaderFields
Returns the “default value” for a type. Read more
impl Eq for GzipHeaderFields
Source§impl PartialEq for GzipHeaderFields
impl PartialEq for GzipHeaderFields
impl StructuralPartialEq for GzipHeaderFields
Auto Trait Implementations§
impl Freeze for GzipHeaderFields
impl RefUnwindSafe for GzipHeaderFields
impl Send for GzipHeaderFields
impl Sync for GzipHeaderFields
impl Unpin for GzipHeaderFields
impl UnsafeUnpin for GzipHeaderFields
impl UnwindSafe for GzipHeaderFields
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