Struct mtree::Entry [−][src]
pub struct Entry { /* fields omitted */ }
An entry in the mtree file.
Entries have a path to the entity in question, and a list of optional params.
Methods
impl Entry
[src]
impl Entry
pub fn path(&self) -> &Path
[src]
pub fn path(&self) -> &Path
The path of this entry
pub fn checksum(&self) -> Option<u64>
[src]
pub fn checksum(&self) -> Option<u64>
cksum
The checksum of the file using the default algorithm specified by
the cksum(1) utility.
pub fn device(&self) -> Option<&Device>
[src]
pub fn device(&self) -> Option<&Device>
device
The device number for block or char file types.
pub fn contents(&self) -> Option<&Path>
[src]
pub fn contents(&self) -> Option<&Path>
contents
The full pathname of a file that holds the contents of this file.
pub fn flags(&self) -> Option<&[u8]>
[src]
pub fn flags(&self) -> Option<&[u8]>
flags
The file flags as a symbolic name.
pub fn gid(&self) -> Option<u64>
[src]
pub fn gid(&self) -> Option<u64>
gid
The file group as a numeric value.
pub fn gname(&self) -> Option<&[u8]>
[src]
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_-]*[$]?
.
pub fn ignore(&self) -> bool
[src]
pub fn ignore(&self) -> bool
ignore
Ignore any file hierarchy below this line.
pub fn inode(&self) -> Option<u64>
[src]
pub fn inode(&self) -> Option<u64>
inode
The inode number.
pub fn link(&self) -> Option<&Path>
[src]
pub fn link(&self) -> Option<&Path>
link
The target of the symbolic link when type=link.
pub fn md5(&self) -> Option<u128>
[src]
pub fn md5(&self) -> Option<u128>
md5|md5digest
The MD5 message digest of the file.
pub fn mode(&self) -> Option<FileMode>
[src]
pub fn mode(&self) -> Option<FileMode>
mode
The current file's permissions as a numeric (octal) or symbolic value.
pub fn nlink(&self) -> Option<u64>
[src]
pub fn nlink(&self) -> Option<u64>
nlink
The number of hard links the file is expected to have.
pub fn no_change(&self) -> bool
[src]
pub fn no_change(&self) -> bool
nochange
Make sure this file or directory exists but otherwise ignore
all attributes.
pub fn optional(&self) -> bool
[src]
pub fn optional(&self) -> bool
optional
The file is optional; do not complain about the file if it is
not in the file hierarchy.
pub fn resident_device(&self) -> Option<&Device>
[src]
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
.
pub fn rmd160(&self) -> Option<&[u8; 20]>
[src]
pub fn rmd160(&self) -> Option<&[u8; 20]>
rmd160|rmd160digest|ripemd160digest
The RIPEMD160 message digest of
the file.
pub fn sha1(&self) -> Option<&[u8; 20]>
[src]
pub fn sha1(&self) -> Option<&[u8; 20]>
sha1|sha1digest
The FIPS 160-1 ("SHA-1") message digest of the file.
pub fn sha256(&self) -> Option<&[u8; 32]>
[src]
pub fn sha256(&self) -> Option<&[u8; 32]>
sha256|sha256digest
The FIPS 180-2 ("SHA-256") message digest of the file.
pub fn sha384(&self) -> Option<&[u8; 48]>
[src]
pub fn sha384(&self) -> Option<&[u8; 48]>
sha384|sha384digest
The FIPS 180-2 ("SHA-384") message digest of the file.
pub fn sha512(&self) -> Option<&[u8; 64]>
[src]
pub fn sha512(&self) -> Option<&[u8; 64]>
sha512|sha512digest
The FIPS 180-2 ("SHA-512") message digest of the file.
pub fn size(&self) -> Option<u64>
[src]
pub fn size(&self) -> Option<u64>
size
The size, in bytes, of the file.
pub fn time(&self) -> Option<SystemTime>
[src]
pub fn time(&self) -> Option<SystemTime>
time
The last modification time of the file.
pub fn file_type(&self) -> Option<FileType>
[src]
pub fn file_type(&self) -> Option<FileType>
type
The type of the file.
pub fn uid(&self) -> Option<u64>
[src]
pub fn uid(&self) -> Option<u64>
The file owner as a numeric value.
pub fn uname(&self) -> Option<&[u8]>
[src]
pub fn uname(&self) -> Option<&[u8]>
The file owner as a symbolic name.
The name can be up to 32 chars and must match regex [a-z_][a-z0-9_-]*[$]?
.
Trait Implementations
impl Debug for Entry
[src]
impl Debug for Entry
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Entry
[src]
impl Clone for Entry
fn clone(&self) -> Entry
[src]
fn clone(&self) -> Entry
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Entry
[src]
impl Eq for Entry
impl PartialEq for Entry
[src]
impl PartialEq for Entry
fn eq(&self, other: &Entry) -> bool
[src]
fn eq(&self, other: &Entry) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Entry) -> bool
[src]
fn ne(&self, other: &Entry) -> bool
This method tests for !=
.
impl Ord for Entry
[src]
impl Ord for Entry
fn cmp(&self, other: &Entry) -> Ordering
[src]
fn cmp(&self, other: &Entry) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Entry
[src]
impl PartialOrd for Entry
fn partial_cmp(&self, other: &Entry) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Entry) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Entry) -> bool
[src]
fn lt(&self, other: &Entry) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Entry) -> bool
[src]
fn le(&self, other: &Entry) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Entry) -> bool
[src]
fn gt(&self, other: &Entry) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Entry) -> bool
[src]
fn ge(&self, other: &Entry) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Entry
[src]
impl Hash for Entry
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Entry
[src]
impl Display for Entry