pub struct DirEntry {
pub name: String,
pub name_bytes: Vec<u8>,
pub name_is_utf8: bool,
pub file_type: FileType,
pub ino: u64,
pub metadata: Metadata,
}Expand description
One directory entry; the library filters out . and ...
Fields§
§name: StringName decoded as UTF-8 (lossy: invalid bytes become U+FFFD).
name_bytes: Vec<u8>Exact on-wire name bytes; authoritative, feed into the Dir::*_at
methods verbatim.
name_is_utf8: boolTrue when name losslessly round-trips to name_bytes.
file_type: FileTypeEntry type, known without a stat.
ino: u64Stable, non-reused inode number.
metadata: MetadataFull metadata returned by the ZeroFS directory-read operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DirEntry
impl<'de> Deserialize<'de> for DirEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin for DirEntry
impl UnwindSafe for DirEntry
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