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§
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more