Struct flate2::GzHeader
[-] [+]
[src]
pub struct GzHeader {
// some fields omitted
}A structure representing the header of a gzip stream.
The header can contain metadata about the file that was compressed, if present.
Methods
impl Header
fn filename(&self) -> Option<&[u8]>
Returns the filename field of this gzip stream's header, if present.
fn extra(&self) -> Option<&[u8]>
Returns the extra field of this gzip stream's header, if present.
fn comment(&self) -> Option<&[u8]>
Returns the comment field of this gzip stream's header, if present.
fn mtime(&self) -> u32
Returns the mtime field of this gzip stream's header, if present.