pub struct SymlinkEntry<'a, B: Backend> { /* private fields */ }
Expand description
A symlink entry of the archive.
An instance of this type is attached to the Entry::Symlink
variant and
provides symlink specific options.
Implementations§
Source§impl<'a, B: Backend> SymlinkEntry<'a, B>
impl<'a, B: Backend> SymlinkEntry<'a, B>
Sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
Returns the target of the symlink.
This is the path, where the symlink points to.
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 SymlinkEntry<'a, B>
impl<'a, B> !RefUnwindSafe for SymlinkEntry<'a, B>
impl<'a, B> !Send for SymlinkEntry<'a, B>
impl<'a, B> !Sync for SymlinkEntry<'a, B>
impl<'a, B> Unpin for SymlinkEntry<'a, B>
impl<'a, B> !UnwindSafe for SymlinkEntry<'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