[−][src]Struct wasmer_engine_object_file::ObjectFileArtifact
A compiled wasm module, ready to be instantiated.
Implementations
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>[src]
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>[src]
_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>[src]
engine: &ObjectFileEngine,
bytes: &[u8]
) -> Result<Self, DeserializeError>
Deserialize a ObjectFileArtifact from bytes.
Safety
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]
fn module(&self) -> Arc<ModuleInfo>[src]
fn module_ref(&self) -> &ModuleInfo[src]
fn module_mut(&mut self) -> Option<&mut ModuleInfo>[src]
fn register_frame_info(&self)[src]
fn features(&self) -> &Features[src]
fn data_initializers(&self) -> &[OwnedDataInitializer][src]
fn memory_styles(&self) -> &PrimaryMap<MemoryIndex, MemoryStyle>[src]
fn table_styles(&self) -> &PrimaryMap<TableIndex, TableStyle>[src]
fn finished_functions(&self) -> &BoxedSlice<LocalFunctionIndex, FunctionBodyPtr>[src]
fn finished_function_call_trampolines(
&self
) -> &BoxedSlice<SignatureIndex, VMTrampoline>[src]
&self
) -> &BoxedSlice<SignatureIndex, VMTrampoline>
fn finished_dynamic_function_trampolines(
&self
) -> &BoxedSlice<FunctionIndex, FunctionBodyPtr>[src]
&self
) -> &BoxedSlice<FunctionIndex, FunctionBodyPtr>
fn signatures(&self) -> &BoxedSlice<SignatureIndex, VMSharedSignatureIndex>[src]
fn preinstantiate(&self) -> Result<(), InstantiationError>[src]
fn serialize(&self) -> Result<Vec<u8>, SerializeError>[src]
Serialize a ObjectFileArtifact
fn serialize_to_file(&self, path: &Path) -> Result<(), SerializeError>[src]
unsafe fn instantiate(
&self,
tunables: &dyn Tunables,
resolver: &dyn Resolver,
host_state: Box<dyn Any + 'static>
) -> Result<InstanceHandle, InstantiationError>[src]
&self,
tunables: &dyn Tunables,
resolver: &dyn Resolver,
host_state: Box<dyn Any + 'static>
) -> Result<InstanceHandle, InstantiationError>
unsafe fn finish_instantiation(
&self,
handle: &InstanceHandle
) -> Result<(), InstantiationError>[src]
&self,
handle: &InstanceHandle
) -> Result<(), InstantiationError>
Auto Trait Implementations
impl RefUnwindSafe for ObjectFileArtifact
impl Send for ObjectFileArtifact
impl Sync for ObjectFileArtifact
impl Unpin for ObjectFileArtifact
impl UnwindSafe for ObjectFileArtifact
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,