[−][src]Struct wasmer_wasi::WasiEnv
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]
&mut self,
module: &Module
) -> Result<ImportObject, WasiError>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,