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