pub struct DylibArtifact { /* private fields */ }
Expand description

A compiled Wasm module, ready to be instantiated.

Implementations

Check if the provided bytes look like DylibArtifact.

This means, if the bytes look like a shared object file in the target system.

Get the default extension when serializing this artifact

Construct a DylibArtifact from component parts.

Construct a DylibArtifact from component parts.

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

Deserialize a DylibArtifact from bytes.

Safety

The bytes must represent a serialized WebAssembly module.

Deserialize a DylibArtifact from a file path.

Safety

The file’s content must represent a serialized WebAssembly module.

Deserialize a DylibArtifact from a file path (unchecked).

Safety

The file’s content must represent a serialized WebAssembly module.

Used in test deserialize metadata is correct

Trait Implementations

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

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.

Get the func data registry

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

Serialize a DylibArtifact.

Return a reference-counted pointer to the module

Return a pointer to a module.

Gets a mutable reference to the info. Read more

Returns the features for this Artifact

Returns the CPU 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.

Serializes an artifact into a file path

Executes the destructor for this type. 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

Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

upcast ref

upcast mut ref

upcast boxed dyn

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