Struct ar::Header
[−]
[src]
pub struct Header { /* fields omitted */ }
Representation of an archive entry header.
Methods
impl Header
[src]
fn new(identifier: String, size: u64) -> Header
Creates a header with the given file identifier and size, and all other fields set to zero.
fn from_metadata(identifier: String, meta: &Metadata) -> Header
Creates a header with the given file identifier and all other fields set from the given filesystem metadata.
fn identifier(&self) -> &str
Returns the file identifier.
fn mtime(&self) -> u64
Returns the last modification time in Unix time format.
fn uid(&self) -> u32
Returns the value of the owner's user ID field.
fn gid(&self) -> u32
Returns the value of the groups's user ID field.
fn mode(&self) -> u32
Returns the mode bits for this file.
fn size(&self) -> u64
Returns the length of the file, in bytes.