Struct async_wasi::snapshots::common::vfs::sync::WasiPreOpenDir
source · pub struct WasiPreOpenDir {
pub guest_path: PathBuf,
/* private fields */
}
Fields§
§guest_path: PathBuf
Implementations§
source§impl WasiPreOpenDir
impl WasiPreOpenDir
pub fn new(host_path: PathBuf, guest_path: PathBuf) -> Self
pub fn get_absolutize_path<P: AsRef<Path>>( &self, sub_path: &P ) -> Result<PathBuf, Errno>
pub fn path_open_file<P: AsRef<Path>>( &mut self, path: &P, oflags: OFlags, fs_rights_base: WASIRights, fdflags: FdFlags ) -> Result<WasiFile, Errno>
pub fn path_open_dir<P: AsRef<Path>>( &mut self, path: &P, oflags: OFlags, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, fdflags: FdFlags ) -> Result<WasiDir, Errno>
pub fn path_create_directory(&self, path: &str) -> Result<(), Errno>
pub fn path_remove_directory(&self, path: &str) -> Result<(), Errno>
pub fn path_unlink_file(&self, path: &str) -> Result<(), Errno>
pub fn path_filestat_get( &self, path: &str, follow_symlinks: bool ) -> Result<Filestat, Errno>
Methods from Deref<Target = WasiDir>§
pub fn fd_readdir( &self, cursor: usize, write_buf: &mut [u8] ) -> Result<usize, Errno>
pub fn fd_fdstat_get(&self) -> Result<FdStat, Errno>
pub fn fd_fdstat_set_rights( &mut self, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights ) -> Result<(), Errno>
pub fn fd_filestat_get(&mut self) -> Result<Filestat, Errno>
pub fn fd_filestat_set_times( &mut self, atim: __wasi_timestamp_t, mtim: __wasi_timestamp_t, fst_flags: Type ) -> Result<(), Errno>
Trait Implementations§
source§impl Debug for WasiPreOpenDir
impl Debug for WasiPreOpenDir
source§impl Deref for WasiPreOpenDir
impl Deref for WasiPreOpenDir
Auto Trait Implementations§
impl RefUnwindSafe for WasiPreOpenDir
impl Send for WasiPreOpenDir
impl Sync for WasiPreOpenDir
impl Unpin for WasiPreOpenDir
impl UnwindSafe for WasiPreOpenDir
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