pub struct VFS { /* private fields */ }
Implementations§
Source§impl VFS
impl VFS
pub fn new_with_stdio<IN, OUT, ERR>(stdio_sys: StdioSys<IN, OUT, ERR>) -> Self
pub fn new() -> Self
pub fn mount_file_sys( &mut self, path: &str, file_sys: Box<dyn WasiFileSys<Index = usize> + Send + Sync>, )
Source§impl VFS
impl VFS
pub fn path_open( &mut self, dirfd: usize, path: &str, oflags: OFlags, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, fdflags: FdFlags, ) -> Result<usize, Errno>
pub fn path_rename( &mut self, old_dir_fd: usize, old_path: &str, new_dir_fd: usize, new_path: &str, ) -> Result<(), Errno>
pub fn fd_preopen_get(&mut self, fd: usize) -> Result<String, Errno>
pub fn fd_renumber(&mut self, _from: usize, _to: usize) -> Result<(), Errno>
pub fn fd_advise( &mut self, _fd: usize, _offset: __wasi_filesize_t, _len: __wasi_filesize_t, _advice: Type, ) -> Result<(), Errno>
pub fn fd_close(&mut self, fd: usize) -> Result<(), Errno>
pub fn path_filestat_get( &self, dir_fd: usize, path: &str, follow_symlinks: bool, ) -> Result<(u64, Filestat), Errno>
pub fn path_create_directory( &mut self, dir_fd: usize, path: &str, ) -> Result<(), Errno>
pub fn path_remove_directory( &mut self, dir_fd: usize, path: &str, ) -> Result<(), Errno>
pub fn path_unlink_file( &mut self, dir_fd: usize, path: &str, ) -> Result<(), Errno>
pub fn get_mut_inode(&mut self, fd: usize) -> Result<&mut dyn WasiNode, Errno>
pub fn get_inode(&self, fd: usize) -> Result<&dyn WasiNode, Errno>
pub fn get_mut_file(&mut self, fd: usize) -> Result<&mut dyn WasiFile, Errno>
pub fn get_file(&self, fd: usize) -> Result<&dyn WasiFile, Errno>
pub fn get_mut_dir(&mut self, fd: usize) -> Result<&mut dyn WasiDir, Errno>
pub fn get_dir(&self, fd: usize) -> Result<&dyn WasiDir, Errno>
pub fn get_mut_socket( &mut self, fd: usize, ) -> Result<&mut AsyncWasiSocket, Errno>
pub fn get_socket(&self, fd: usize) -> Result<&AsyncWasiSocket, Errno>
pub fn insert_socket(&mut self, s: AsyncWasiSocket) -> Result<usize, Errno>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VFS
impl !RefUnwindSafe for VFS
impl Send for VFS
impl Sync for VFS
impl Unpin for VFS
impl !UnwindSafe for VFS
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