pub struct Location { /* private fields */ }Implementations§
Source§impl Location
impl Location
pub fn inode(&self) -> u64
pub fn filesystem(&self) -> &dyn FilesystemOps
pub fn update_metadata(&self, update: MetadataUpdate) -> VfsResult<()>
pub fn len(&self) -> VfsResult<u64>
pub fn sync(&self, data_only: bool) -> VfsResult<()>
pub fn is_file(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn node_type(&self) -> NodeType
pub fn is_root_of_mount(&self) -> bool
pub fn read_link(&self) -> VfsResult<String>
pub fn ioctl(&self, cmd: u32, arg: usize) -> VfsResult<usize>
pub fn flags(&self) -> NodeFlags
pub fn user_data(&self) -> MutexGuard<'_, TypeMap>
Source§impl Location
impl Location
pub fn new(mountpoint: Arc<Mountpoint>, entry: DirEntry) -> Self
pub fn mountpoint(&self) -> &Arc<Mountpoint>
pub fn entry(&self) -> &DirEntry
pub fn name(&self) -> &str
pub fn parent(&self) -> Option<Self>
pub fn is_root(&self) -> bool
pub fn check_is_dir(&self) -> VfsResult<()>
pub fn check_is_file(&self) -> VfsResult<()>
pub fn metadata(&self) -> VfsResult<Metadata>
pub fn absolute_path(&self) -> VfsResult<PathBuf>
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn is_mountpoint(&self) -> bool
pub fn lookup_no_follow(&self, name: &str) -> VfsResult<Self>
pub fn create( &self, name: &str, node_type: NodeType, permission: NodePermission, ) -> VfsResult<Self>
pub fn link(&self, name: &str, node: &Self) -> VfsResult<Self>
pub fn rename( &self, src_name: &str, dst_dir: &Self, dst_name: &str, ) -> VfsResult<()>
pub fn unlink(&self, name: &str, is_dir: bool) -> VfsResult<()>
pub fn open_file( &self, name: &str, options: &OpenOptions, ) -> VfsResult<Location>
pub fn read_dir( &self, offset: u64, sink: &mut dyn DirEntrySink, ) -> VfsResult<usize>
pub fn mount(&self, fs: &Filesystem) -> VfsResult<Arc<Mountpoint>>
pub fn unmount(&self) -> VfsResult<()>
pub fn unmount_all(&self) -> VfsResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Location
impl !RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl !UnwindSafe for Location
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