[−][src]Struct mtree::Entry
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]
pub fn path(&self) -> &Path
[src]
The path of this entry
pub fn checksum(&self) -> Option<u64>
[src]
cksum
The checksum of the file using the default algorithm specified by
the cksum(1) utility.
pub fn device(&self) -> Option<&Device>
[src]
device
The device number for block or char file types.
pub fn contents(&self) -> Option<&Path>
[src]
contents
The full pathname of a file that holds the contents of this file.
pub fn flags(&self) -> Option<&[u8]>
[src]
flags
The file flags as a symbolic name.
pub fn gid(&self) -> Option<u64>
[src]
gid
The file group as a numeric value.
pub fn gname(&self) -> Option<&[u8]>
[src]
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]
ignore
Ignore any file hierarchy below this line.
pub fn inode(&self) -> Option<u64>
[src]
inode
The inode number.
pub fn link(&self) -> Option<&Path>
[src]
link
The target of the symbolic link when type=link.
pub fn md5(&self) -> Option<u128>
[src]
md5|md5digest
The MD5 message digest of the file.
pub fn mode(&self) -> Option<FileMode>
[src]
mode
The current file's permissions as a numeric (octal) or symbolic value.
pub fn nlink(&self) -> Option<u64>
[src]
nlink
The number of hard links the file is expected to have.
pub fn no_change(&self) -> bool
[src]
nochange
Make sure this file or directory exists but otherwise ignore
all attributes.
pub fn optional(&self) -> bool
[src]
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]
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]
rmd160|rmd160digest|ripemd160digest
The RIPEMD160 message digest of
the file.
pub fn sha1(&self) -> Option<&[u8; 20]>
[src]
sha1|sha1digest
The FIPS 160-1 ("SHA-1") message digest of the file.
pub fn sha256(&self) -> Option<&[u8; 32]>
[src]
sha256|sha256digest
The FIPS 180-2 ("SHA-256") message digest of the file.
pub fn sha384(&self) -> Option<&[u8; 48]>
[src]
sha384|sha384digest
The FIPS 180-2 ("SHA-384") message digest of the file.
pub fn sha512(&self) -> Option<&[u8; 64]>
[src]
sha512|sha512digest
The FIPS 180-2 ("SHA-512") message digest of the file.
pub fn size(&self) -> Option<u64>
[src]
size
The size, in bytes, of the file.
pub fn time(&self) -> Option<SystemTime>
[src]
time
The last modification time of the file.
pub fn file_type(&self) -> Option<FileType>
[src]
type
The type of the file.
pub fn uid(&self) -> Option<u64>
[src]
The file owner as a numeric value.
pub fn uname(&self) -> Option<&[u8]>
[src]
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 PartialOrd<Entry> for Entry
[src]
fn partial_cmp(&self, other: &Entry) -> Option<Ordering>
[src]
fn lt(&self, other: &Entry) -> bool
[src]
fn le(&self, other: &Entry) -> bool
[src]
fn gt(&self, other: &Entry) -> bool
[src]
fn ge(&self, other: &Entry) -> bool
[src]
impl PartialEq<Entry> for Entry
[src]
impl Clone for Entry
[src]
fn clone(&self) -> Entry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for Entry
[src]
fn cmp(&self, other: &Entry) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Eq for Entry
[src]
impl Display for Entry
[src]
impl Debug for Entry
[src]
impl Hash for Entry
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,