Struct libflate::gzip::Header
[−]
[src]
pub struct Header { /* fields omitted */ }
GZIP Header.
Methods
impl Header
[src]
pub fn modification_time(&self) -> u32
[src]
Returns the modification time (UNIX timestamp).
pub fn compression_level(&self) -> CompressionLevel
[src]
Returns the compression level.
pub fn os(&self) -> Os
[src]
Returns the OS type.
pub fn is_text(&self) -> bool
[src]
Returns true
if the stream is probably ASCII text, false
otherwise.
pub fn is_verified(&self) -> bool
[src]
Returns true
if the header bytes is verified by CRC-16, false
otherwise.
pub fn extra_field(&self) -> Option<&ExtraField>
[src]
Returns the extra field.
pub fn filename(&self) -> Option<&CString>
[src]
Returns the file name.
pub fn comment(&self) -> Option<&CString>
[src]
Returns the comment.
Trait Implementations
impl Debug for Header
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more