pub struct EntryInfo(/* private fields */);
Expand description
Information about a directory entry, used to populate ReadDirents() output. The first element is the inode number, or INO_UNKNOWN (from fuchsia.io) if not set, and the second element is one of the DIRENT_TYPE_* constants defined in the fuchsia.io.
Implementations§
source§impl EntryInfo
impl EntryInfo
sourcepub fn new(inode: u64, type_: DirentType) -> Self
pub fn new(inode: u64, type_: DirentType) -> Self
Constructs a new directory entry information object.
sourcepub fn inode(&self) -> u64
pub fn inode(&self) -> u64
Retrives the inode
argument of the EntryInfo::new()
constructor.
sourcepub fn type_(&self) -> DirentType
pub fn type_(&self) -> DirentType
Retrieves the type_
argument of the EntryInfo::new()
constructor.
Trait Implementations§
source§impl PartialEq for EntryInfo
impl PartialEq for EntryInfo
impl Eq for EntryInfo
impl StructuralPartialEq for EntryInfo
Auto Trait Implementations§
impl Freeze for EntryInfo
impl RefUnwindSafe for EntryInfo
impl Send for EntryInfo
impl Sync for EntryInfo
impl Unpin for EntryInfo
impl UnwindSafe for EntryInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)