pub struct DirEntry(/* private fields */);Implementations§
Source§impl DirEntry
impl DirEntry
pub fn new_file( node: FileNode, node_type: NodeType, reference: Reference, ) -> Self
pub fn new_dir( node_fn: impl FnOnce(WeakDirEntry) -> DirNode, reference: Reference, ) -> Self
pub fn metadata(&self) -> VfsResult<Metadata>
pub fn downcast<T: NodeOps>(&self) -> VfsResult<Arc<T>>
pub fn downgrade(&self) -> WeakDirEntry
pub fn key(&self) -> ReferenceKey
pub fn node_type(&self) -> NodeType
pub fn parent(&self) -> Option<Self>
pub fn name(&self) -> &str
Sourcepub fn is_root_of_mount(&self) -> bool
pub fn is_root_of_mount(&self) -> bool
Checks if the entry is a root of a mount point.
pub fn is_ancestor_of(&self, other: &Self) -> VfsResult<bool>
pub fn absolute_path(&self) -> VfsResult<PathBuf>
pub fn is_file(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn as_file(&self) -> VfsResult<&FileNode>
pub fn as_dir(&self) -> VfsResult<&DirNode>
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn as_ptr(&self) -> usize
pub fn read_link(&self) -> VfsResult<String>
pub fn ioctl(&self, cmd: u32, arg: usize) -> VfsResult<usize>
pub fn user_data(&self) -> MutexGuard<'_, TypeMap>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl !RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin 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