wasmtime_wasi::bindings::sync::filesystem::preopens

Trait Host

Source
pub trait Host: Send + 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 paths.

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 paths.

Implementors§

Source§

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