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.
Trait Implementations§
source§impl Ord for Entry
impl Ord for Entry
source§impl PartialEq for Entry
impl PartialEq for Entry
source§impl PartialOrd for Entry
impl PartialOrd for Entry
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)