pub struct Entry { /* private fields */ }Expand description
An entry in the mtree file.
Entries have a path to the entity in question, and a list of optional params.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn checksum(&self) -> Option<u64>
pub fn checksum(&self) -> Option<u64>
cksum The checksum of the file using the default algorithm specified
by the cksum(1) utility.
Sourcepub fn contents(&self) -> Option<&Path>
pub fn contents(&self) -> Option<&Path>
contents The full pathname of a file that holds the contents of this
file.
Sourcepub fn gname(&self) -> Option<&[u8]>
pub fn gname(&self) -> Option<&[u8]>
gname The file group as a symbolic name.
The name can be up to 32 chars and must match regex
[a-z_][a-z0-9_-]*[$]?.
Sourcepub fn mode(&self) -> Option<FileMode>
pub fn mode(&self) -> Option<FileMode>
mode The current file’s permissions as a numeric (octal) or symbolic
value.
Sourcepub fn nlink(&self) -> Option<u64>
pub fn nlink(&self) -> Option<u64>
nlink The number of hard links the file is expected to have.
Sourcepub fn no_change(&self) -> bool
pub fn no_change(&self) -> bool
nochange Make sure this file or directory exists but otherwise ignore
all attributes.
Sourcepub fn optional(&self) -> bool
pub fn optional(&self) -> bool
optional The file is optional; do not complain about the file if it is
not in the file hierarchy.
Sourcepub fn resident_device(&self) -> Option<&Device>
pub fn resident_device(&self) -> Option<&Device>
resdevice The “resident” device number of the file, e.g. the ID of the
device that contains the file. Its format is the same as the one for
device.
Sourcepub fn rmd160(&self) -> Option<&[u8; 20]>
pub fn rmd160(&self) -> Option<&[u8; 20]>
rmd160|rmd160digest|ripemd160digest The RIPEMD160 message digest of
the file.
Sourcepub fn sha1(&self) -> Option<&[u8; 20]>
pub fn sha1(&self) -> Option<&[u8; 20]>
sha1|sha1digest The FIPS 160-1 (“SHA-1”) message digest of the file.
Sourcepub fn sha256(&self) -> Option<&[u8; 32]>
pub fn sha256(&self) -> Option<&[u8; 32]>
sha256|sha256digest The FIPS 180-2 (“SHA-256”) message digest of the
file.
Sourcepub fn sha384(&self) -> Option<&[u8; 48]>
pub fn sha384(&self) -> Option<&[u8; 48]>
sha384|sha384digest The FIPS 180-2 (“SHA-384”) message digest of the
file.
Sourcepub fn sha512(&self) -> Option<&[u8; 64]>
pub fn sha512(&self) -> Option<&[u8; 64]>
sha512|sha512digest The FIPS 180-2 (“SHA-512”) message digest of the
file.
Sourcepub fn time(&self) -> Option<SystemTime>
pub fn time(&self) -> Option<SystemTime>
time The last modification time of the file.