pub struct MemoryDir { /* private fields */ }
Trait Implementations§
Source§impl WasiNode for MemoryDir
impl WasiNode for MemoryDir
fn fd_fdstat_get(&self) -> Result<FdStat, Errno>
fn fd_filestat_get(&self) -> Result<Filestat, Errno>
fn fd_filestat_set_size(&mut self, size: __wasi_filesize_t) -> Result<(), Errno>
fn fd_filestat_set_times( &mut self, atim: __wasi_timestamp_t, mtim: __wasi_timestamp_t, fst_flags: Type, ) -> Result<(), Errno>
fn fd_fdstat_set_flags(&mut self, flags: FdFlags) -> Result<(), Errno>
fn fd_fdstat_set_rights( &mut self, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, ) -> Result<(), Errno>
Source§impl WasiVirtualDir for MemoryDir
impl WasiVirtualDir for MemoryDir
fn create(ino: usize) -> Self
fn add_sub_dir<P: AsRef<Path>>( &mut self, path: &P, ino: usize, ) -> Result<(), Errno>
fn remove_sub_dir<P: AsRef<Path>>(&mut self, path: &P) -> Result<(), Errno>
fn link_inode<P: AsRef<Path>>( &mut self, path: &P, ino: usize, ) -> Result<(), Errno>
fn unlink_inode<P: AsRef<Path>>(&mut self, path: &P) -> Result<(), Errno>
fn find_inode<P: AsRef<Path>>(&self, path: &P) -> Option<usize>
fn is_empty(&self) -> bool
fn is_open(&self) -> bool
fn open(&mut self)
fn close(&mut self) -> usize
fn mark_remove(&mut self)
Auto Trait Implementations§
impl Freeze for MemoryDir
impl RefUnwindSafe for MemoryDir
impl Send for MemoryDir
impl Sync for MemoryDir
impl Unpin for MemoryDir
impl UnwindSafe for MemoryDir
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