async_wasi::snapshots::common::vfs::virtual_sys

Trait WasiVirtualFile

Source
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§

Source

fn create(ino: usize) -> Self

Source

fn set_ino(&mut self, ino: usize)

Source

fn is_open(&self) -> bool

Source

fn open(&mut self)

Source

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.

Implementors§