pub struct StdioSys<IN, OUT, ERR>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<IN, OUT, ERR> WasiFileSys for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> WasiFileSys for StdioSys<IN, OUT, ERR>
type Index = usize
fn path_open( &mut self, dir_ino: usize, path: &str, oflags: OFlags, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, fdflags: FdFlags, ) -> Result<Self::Index, Errno>
fn path_rename( &mut self, old_dir: usize, old_path: &str, new_dir: usize, new_path: &str, ) -> Result<(), Errno>
fn path_create_directory( &mut self, dir_ino: usize, path: &str, ) -> Result<(), Errno>
fn path_remove_directory( &mut self, dir_ino: usize, path: &str, ) -> Result<(), Errno>
fn path_unlink_file( &mut self, dir_ino: Self::Index, path: &str, ) -> Result<(), Errno>
fn path_link_file( &mut self, old_dir: Self::Index, old_path: &str, new_dir: Self::Index, new_path: &str, ) -> Result<(), Errno>
fn path_filestat_get( &self, dir_ino: usize, path: &str, follow_symlinks: bool, ) -> Result<Filestat, Errno>
fn get_mut_inode(&mut self, ino: usize) -> Result<&mut dyn WasiNode, Errno>
fn get_inode(&self, ino: usize) -> Result<&dyn WasiNode, Errno>
fn get_mut_file(&mut self, ino: usize) -> Result<&mut dyn WasiFile, Errno>
fn get_file(&self, ino: usize) -> Result<&dyn WasiFile, Errno>
fn get_mut_dir(&mut self, ino: usize) -> Result<&mut dyn WasiDir, Errno>
fn get_dir(&self, ino: usize) -> Result<&dyn WasiDir, Errno>
fn fclose(&mut self, ino: Self::Index) -> Result<(), Errno>
Auto Trait Implementations§
impl<IN, OUT, ERR> Freeze for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> RefUnwindSafe for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> Send for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> Sync for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> Unpin for StdioSys<IN, OUT, ERR>
impl<IN, OUT, ERR> UnwindSafe for StdioSys<IN, OUT, ERR>
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