pub struct FuseDirEntry {
pub name: String,
pub ino: u64,
pub kind: FileType,
}Expand description
A directory entry for FUSE readdir operations.
This struct represents a single entry in a directory listing, containing the entry name, inode number, and file type.
Fields§
§name: StringThe entry name (file or directory name, not full path).
ino: u64The inode number for this entry.
kind: FileTypeThe file type (regular file, directory, symlink, etc.).
Implementations§
Source§impl FuseDirEntry
impl FuseDirEntry
Sourcepub fn new(name: impl Into<String>, ino: u64, kind: FileType) -> Self
pub fn new(name: impl Into<String>, ino: u64, kind: FileType) -> Self
Creates a new directory entry.
Sourcepub fn file(name: impl Into<String>, ino: u64) -> Self
pub fn file(name: impl Into<String>, ino: u64) -> Self
Creates a directory entry for a regular file.
Trait Implementations§
Source§impl Clone for FuseDirEntry
impl Clone for FuseDirEntry
Source§fn clone(&self) -> FuseDirEntry
fn clone(&self) -> FuseDirEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FuseDirEntry
impl RefUnwindSafe for FuseDirEntry
impl Send for FuseDirEntry
impl Sync for FuseDirEntry
impl Unpin for FuseDirEntry
impl UnwindSafe for FuseDirEntry
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