Struct obnth::Entry [−][src]
An entry encountered when iterating over a directory.
Implementations
impl Entry
[src]
pub fn name(&self) -> &OsStr
[src]
Get the name of this entry.
pub fn ino(&self) -> u64
[src]
Get this entry's inode.
Note: If this entry refers to a mountpoint (including bind mounts on Linux), this may be
the inode of the underlying directory on which the filesystem is mounted. So this value
may not match, for example, self.metadata()?.ino()
(which looks up the actual root
directory of the mountpoint).
pub fn file_type(&self) -> Option<FileType>
[src]
Get the entry's file type without making any additional syscalls, if possible.
If this returns None
, the OS didn't specify a file type.
pub fn metadata(&self) -> Result<Metadata>
[src]
Get the metadata for the file named by this entry.
This method will not traverse symlinks.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Entry
[src]
impl !Send for Entry
[src]
impl !Sync for Entry
[src]
impl Unpin for Entry
[src]
impl UnwindSafe for Entry
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,