Struct holochain_wasmer_host::env::Env
source · [−]pub struct Env { /* private fields */ }
Implementations
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Gets the item without checking if it’s been initialized.
Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Gets the item without checking if it’s been initialized.
Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Gets the item without checking if it’s been initialized.
Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
pub fn consume_bytes_from_guest<O>(
&self,
guest_ptr: GuestPtr,
len: Len
) -> Result<O, WasmError> where
O: DeserializeOwned + Debug,
Trait Implementations
The function that Wasmer will call on your type to let it finish
setting up the environment with data from the Instance
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Env
impl !UnwindSafe for Env
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more