Struct nuts_archive::DirectoryEntry
source · pub struct DirectoryEntry<'a, B: Backend>(/* private fields */);Expand description
A directory entry of the archive.
An instance of this type is attached to the Entry::Directory variant
and provides directory specific options.
Implementations§
source§impl<'a, B: Backend> DirectoryEntry<'a, B>
impl<'a, B: Backend> DirectoryEntry<'a, B>
sourcepub fn can_read(&self, group: Group) -> bool
pub fn can_read(&self, group: Group) -> bool
Tests whether a member of the given group has read access.
sourcepub fn can_write(&self, group: Group) -> bool
pub fn can_write(&self, group: Group) -> bool
Tests whether a member of the given group has write access.
sourcepub fn can_execute(&self, group: Group) -> bool
pub fn can_execute(&self, group: Group) -> bool
Tests whether a member of the given group has execute access.
sourcepub fn appended(&self) -> &DateTime<Utc>
pub fn appended(&self) -> &DateTime<Utc>
Returns the time when the entry was appened to the archive.
sourcepub fn created(&self) -> &DateTime<Utc>
pub fn created(&self) -> &DateTime<Utc>
Returns the time when the originating filesystem entry was created.
Auto Trait Implementations§
impl<'a, B> Freeze for DirectoryEntry<'a, B>
impl<'a, B> !RefUnwindSafe for DirectoryEntry<'a, B>
impl<'a, B> !Send for DirectoryEntry<'a, B>
impl<'a, B> !Sync for DirectoryEntry<'a, B>
impl<'a, B> Unpin for DirectoryEntry<'a, B>
impl<'a, B> !UnwindSafe for DirectoryEntry<'a, B>
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
Mutably borrows from an owned value. Read more