[][src]Struct wasmer_wasi::WasiEnv

pub struct WasiEnv { /* fields omitted */ }

The environment provided to the WASI imports.

Implementations

impl WasiEnv[src]

pub fn new(state: WasiState) -> Self[src]

pub fn import_object(
    &mut self,
    module: &Module
) -> Result<ImportObject, WasiError>
[src]

pub fn set_memory(&mut self, memory: Memory) -> bool[src]

Set the memory

pub fn state(&self) -> MutexGuard<'_, WasiState>[src]

Get the WASI state

pub fn state_mut(&mut self) -> MutexGuard<'_, WasiState>[src]

Get the WASI state (mutable)

pub fn memory(&self) -> &Memory[src]

Get a reference to the memory

Trait Implementations

impl Clone for WasiEnv[src]

impl Debug for WasiEnv[src]

Auto Trait Implementations

impl !RefUnwindSafe for WasiEnv

impl !Send for WasiEnv

impl !Sync for WasiEnv

impl Unpin for WasiEnv

impl !UnwindSafe for WasiEnv

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.