[][src]Struct wasmer_engine_native::NativeArtifact

pub struct NativeArtifact { /* fields omitted */ }

A compiled wasm module, ready to be instantiated.

Implementations

impl NativeArtifact[src]

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

Check if the provided bytes look like NativeArtifact.

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(
    metadata: ModuleMetadata,
    sharedobject_path: PathBuf
) -> Result<Self, CompileError>
[src]

Construct a NativeArtifact from component parts.

pub fn from_parts(
    engine_inner: &mut NativeEngineInner,
    metadata: ModuleMetadata,
    sharedobject_path: PathBuf,
    lib: Library
) -> Result<Self, CompileError>
[src]

Construct a NativeArtifact from component parts.

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

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

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

Deserialize a NativeArtifact from bytes.

Safety

The bytes must represent a serialized WebAssembly module.

pub unsafe fn deserialize_from_file(
    engine: &NativeEngine,
    path: &Path
) -> Result<Self, DeserializeError>
[src]

Deserialize a NativeArtifact from a file path.

Safety

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

pub unsafe fn deserialize_from_file_unchecked(
    engine: &NativeEngine,
    path: &Path
) -> Result<Self, DeserializeError>
[src]

Deserialize a NativeArtifact from a file path (unchecked).

Safety

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

Trait Implementations

impl Artifact for NativeArtifact[src]

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

Serialize a NativeArtifact

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,