[][src]Struct wasmer_runtime_c_api::import::wasmer_wasi_map_dir_entry_t

#[repr(C)]
pub struct wasmer_wasi_map_dir_entry_t {
    pub alias: wasmer_byte_array,
    pub host_file_path: wasmer_byte_array,
}

Opens a directory that's visible to the WASI module as alias but is backed by the host file at host_file_path

Fields

alias: wasmer_byte_array

What the WASI module will see in its virtual root

host_file_path: wasmer_byte_array

The backing file that the WASI module will interact with via the alias

Methods

impl wasmer_wasi_map_dir_entry_t[src]

pub unsafe fn as_tuple(&self) -> Result<(String, PathBuf), Utf8Error>[src]

Converts the data into owned, Rust types

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.