Struct wasmer_engine_universal::UniversalArtifact[][src]

pub struct UniversalArtifact { /* fields omitted */ }
Expand description

A compiled wasm module, ready to be instantiated.

Implementations

Check if the provided bytes look like a serialized UniversalArtifact.

Compile a data buffer into a UniversalArtifact, which may then be instantiated.

Deserialize a UniversalArtifact

Safety

This function is unsafe because rkyv reads directly without validating the data.

Construct a UniversalArtifact from component parts.

Get the default extension when serializing this artifact

Trait Implementations

Return a reference-counted pointer to the module

Return a pointer to a module.

Gets a mutable reference to the info. Read more

Register thie Artifact stack frame information into the global scope. Read more

Returns the features for this Artifact

Returns data initializers to pass to InstanceHandle::initialize

Returns the memory styles associated with this Artifact.

Returns the table plans associated with this Artifact.

Returns the functions allocated in memory or this Artifact ready to be run. Read more

Returns the function call trampolines allocated in memory of this Artifact, ready to be run. Read more

Returns the dynamic function trampolines allocated in memory of this Artifact, ready to be run. Read more

Returns the associated VM signatures for this Artifact.

Serializes an artifact into bytes

Serializes an artifact into a file path

Do preinstantiation logic that is executed before instantiating

Crate an Instance from this Artifact. Read more

Finishes the instantiation of a just created InstanceHandle. Read more

Returns the size of the referenced value in bytes. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type for metadata in pointers and references to Self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.