wasmtime_wasi::bindings::filesystem::preopens

Trait Host

Source
pub trait Host: Send {
    // Required method
    fn get_directories(&mut self) -> Result<Vec<(Resource<Descriptor>, String)>>;
}

Required Methods§

Source

fn get_directories(&mut self) -> Result<Vec<(Resource<Descriptor>, String)>>

Return the set of preopened directories, and their path.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

fn get_directories(&mut self) -> Result<Vec<(Resource<Descriptor>, String)>>

Return the set of preopened directories, and their path.

Implementors§

Source§

impl<T> Host for WasiImpl<T>
where T: WasiView,