[][src]Struct wasmer_engine_object_file::ObjectFileArtifact

pub struct ObjectFileArtifact { /* fields omitted */ }

A compiled wasm module, ready to be instantiated.


impl ObjectFileArtifact[src]

pub fn is_deserializable(bytes: &[u8]) -> bool[src]

Check if the provided bytes look like ObjectFileArtifact.

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

pub fn get_default_extension(triple: &Triple) -> &'static str[src]

Get the default extension when serializing this artifact

pub fn from_parts_crosscompiled(
    engine_inner: &mut ObjectFileEngineInner,
    metadata: ModuleMetadata,
    module_bytes: Vec<u8>,
    metadata_length: usize
) -> Result<Self, CompileError>

Construct a ObjectFileArtifact from component parts.

pub fn new(
    _engine: &ObjectFileEngine,
    _data: &[u8]
) -> Result<Self, CompileError>

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

pub unsafe fn deserialize(
    engine: &ObjectFileEngine,
    bytes: &[u8]
) -> Result<Self, DeserializeError>

Deserialize a ObjectFileArtifact from bytes.


The bytes must represent a serialized WebAssembly module.

pub fn symbol_registry(&self) -> &dyn SymbolRegistry[src]

Get the SymbolRegistry used to generate the names used in the Artifact.

pub fn metadata_length(&self) -> usize[src]

The length in bytes of the metadata in the serialized output.

Trait Implementations

impl Artifact for ObjectFileArtifact[src]

pub fn serialize(&self) -> Result<Vec<u8>, SerializeError>[src]

Serialize a ObjectFileArtifact

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,