pub struct WasiDir {
pub real_path: PathBuf,
pub dir_rights: WASIRights,
pub file_rights: WASIRights,
}
Fields§
§real_path: PathBuf
§dir_rights: WASIRights
§file_rights: WASIRights
Implementations§
source§impl WasiDir
impl 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§
Auto Trait Implementations§
impl RefUnwindSafe for WasiDir
impl Send for WasiDir
impl Sync for WasiDir
impl Unpin for WasiDir
impl UnwindSafe for WasiDir
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