pub enum Entry {
File(Box<FileEntry>),
Directory(DirectoryEntry),
Symlink(SymlinkEntry),
}
Variants§
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of the entry.
This is the name of the file or directory, not the full path.
For example, if the entry is under path/to/file.txt
, this will return file.txt
.
Sourcepub fn mode(&self) -> Permissions
pub fn mode(&self) -> Permissions
Returns the mode of the entry. This is the file permissions of the entry.
Trait Implementations§
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
Mutably borrows from an owned value. Read more