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

Trait WasiVirtualDir

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

Source

fn create(ino: usize) -> Self

Source

fn add_sub_dir<P: AsRef<Path>>( &mut self, path: &P, ino: usize, ) -> Result<(), Errno>

Source

fn remove_sub_dir<P: AsRef<Path>>(&mut self, path: &P) -> Result<(), Errno>

Source

fn find_inode<P: AsRef<Path>>(&self, path: &P) -> Option<usize>

Source

fn is_empty(&self) -> bool

Source

fn is_open(&self) -> bool

Source

fn open(&mut self)

Source

fn close(&mut self) -> usize

Source

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.

Implementors§