pub trait WasiVirtualDir: WasiDir {
// Required methods
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);
}
Required Methods§
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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.