pub trait WasiVirtualFile: WasiFile {
// Required methods
fn create(ino: usize) -> Self;
fn set_ino(&mut self, ino: usize);
fn inc_link(&mut self) -> Result<usize, Errno>;
fn dec_link(&mut self) -> Result<usize, Errno>;
fn is_open(&self) -> bool;
fn open(&mut self);
fn close(&mut self) -> usize;
}
Required Methods§
fn create(ino: usize) -> Self
fn set_ino(&mut self, ino: usize)
fn inc_link(&mut self) -> Result<usize, Errno>
fn dec_link(&mut self) -> Result<usize, Errno>
fn is_open(&self) -> bool
fn open(&mut self)
fn close(&mut self) -> usize
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.