cpio_archive

Trait CpioHeader

Source
pub trait CpioHeader: Debug {
    // Required methods
    fn device(&self) -> u32;
    fn inode(&self) -> u32;
    fn mode(&self) -> u32;
    fn uid(&self) -> u32;
    fn gid(&self) -> u32;
    fn nlink(&self) -> u32;
    fn rdev(&self) -> u32;
    fn mtime(&self) -> u32;
    fn file_size(&self) -> u64;
    fn name(&self) -> &str;

    // Provided method
    fn modified_time(&self) -> DateTime<Utc> { ... }
}
Expand description

Common behavior for a header/entry in a cpio archive.

Required Methods§

Source

fn device(&self) -> u32

Device number.

Source

fn inode(&self) -> u32

Inode number.

Source

fn mode(&self) -> u32

File mode.

Source

fn uid(&self) -> u32

User ID.

Source

fn gid(&self) -> u32

Group ID.

Number of links.

Source

fn rdev(&self) -> u32

Associated device number.

Source

fn mtime(&self) -> u32

Modified time as seconds since UNIX epoch.

Source

fn file_size(&self) -> u64

File size in bytes.

Source

fn name(&self) -> &str

File name.

Provided Methods§

Source

fn modified_time(&self) -> DateTime<Utc>

Modified time as a DateTime.

Implementors§