Struct wasmer_ruby::Wasmer::Wasi::Environment
source · pub struct Environment;
Expand description
The environment provided to the WASI imports.
To build it, use StateBuilder
. See
StateBuilder::finalize
to learn more.
Implementations§
source§impl Environment
impl Environment
sourcepub fn generate_import_object(
&self,
store: Store,
wasi_version: Version
) -> ImportObject
pub fn generate_import_object( &self, store: Store, wasi_version: Version ) -> ImportObject
Create an ImportObject
with an existing
Environment
. The import object will be different
according to the WASI version.
Use the Version
enum to use a specific WASI
version, or use get_version
to read the WASI
version from a Module
.
Auto Trait Implementations§
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more