pub struct VirtualFileSystem { /* private fields */ }Expand description
The virtual file system.
It is a singleton.
Implementations§
Source§impl VirtualFileSystem
impl VirtualFileSystem
pub fn new( _: &'static Manager, _: &'static Manager, _: &'static Manager<'_>, root_file_system: impl FileSystemOperations + 'static, ) -> Self
pub async fn uninitialize(&self)
Sourcepub async fn mount_file_system(
&'static self,
file_system: impl FileSystemOperations + 'static,
path: impl AsRef<Path>,
task: TaskIdentifier,
) -> Result<()>
pub async fn mount_file_system( &'static self, file_system: impl FileSystemOperations + 'static, path: impl AsRef<Path>, task: TaskIdentifier, ) -> Result<()>
Mount a file system at a given mount point.
pub async fn unmount(&self, path: impl AsRef<Path>, force: bool) -> Result<()>
pub async fn unmount_all(&self) -> Result<()>
pub async fn open_directory( &self, task: TaskIdentifier, path: &impl AsRef<Path>, ) -> Result<Directory>
pub async fn open( &self, path: &impl AsRef<Path>, flags: Flags, task: TaskIdentifier, ) -> Result<File>
pub async fn mount_static( &self, task: TaskIdentifier, path: impl AsRef<Path>, item: ItemStatic, ) -> Result<()>
pub async fn mount_block_device( &self, task: TaskIdentifier, path: impl AsRef<Path>, device: impl BlockDevice + 'static, ) -> Result<()>
pub async fn mount_character_device( &self, task: TaskIdentifier, path: impl AsRef<Path>, device: impl CharacterDevice + 'static, ) -> Result<()>
pub async fn create_named_pipe( &self, path: &impl AsRef<Path>, size: usize, task: TaskIdentifier, ) -> Result<()>
pub async fn create_unnamed_pipe( &self, size: usize, status: StateFlags, ) -> Result<(File, File)>
pub async fn remove( &self, task: TaskIdentifier, path: impl AsRef<Path>, ) -> Result<()>
pub async fn create_directory( &self, task: TaskIdentifier, path: &impl AsRef<Path>, ) -> Result<()>
pub async fn rename( &self, old_path: &impl AsRef<Path>, new_path: &impl AsRef<Path>, ) -> Result<()>
pub async fn get_statistics( &self, path: &impl AsRef<Path>, ) -> Result<Statistics>
pub async fn close( &self, item: &ItemStatic, context: &mut Context, ) -> Result<()>
pub async fn set_ownership( &self, task: TaskIdentifier, path: impl AsRef<Path>, user: Option<UserIdentifier>, group: Option<GroupIdentifier>, ) -> Result<()>
pub async fn set_permissions( &self, task: TaskIdentifier, path: impl AsRef<Path>, permissions: Permissions, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for VirtualFileSystem
impl !RefUnwindSafe for VirtualFileSystem
impl Send for VirtualFileSystem
impl Sync for VirtualFileSystem
impl Unpin for VirtualFileSystem
impl UnsafeUnpin for VirtualFileSystem
impl !UnwindSafe for VirtualFileSystem
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