[−][src]Struct wasmer_engine_dummy::DummyArtifact
A Dummy artifact.
This artifact will point to fake finished functions and trampolines as no functions are really compiled.
Implementations
impl DummyArtifact
[src]
pub fn is_deserializable(bytes: &[u8]) -> bool
[src]
Check if the provided bytes look like a serialized DummyArtifact
.
pub fn new(
engine: &DummyEngine,
data: &[u8],
tunables: &dyn Tunables
) -> Result<Self, CompileError>
[src]
engine: &DummyEngine,
data: &[u8],
tunables: &dyn Tunables
) -> Result<Self, CompileError>
Compile a data buffer into a DummyArtifact
, which may then be instantiated.
pub fn deserialize(
engine: &DummyEngine,
bytes: &[u8]
) -> Result<Self, DeserializeError>
[src]
engine: &DummyEngine,
bytes: &[u8]
) -> Result<Self, DeserializeError>
Deserialize a DummyArtifact
pub fn from_parts(
engine: &DummyEngine,
metadata: DummyArtifactMetadata
) -> Result<Self, CompileError>
[src]
engine: &DummyEngine,
metadata: DummyArtifactMetadata
) -> Result<Self, CompileError>
Construct a DummyArtifact
from component parts.
Trait Implementations
impl Artifact for DummyArtifact
[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_dynamic_function_trampolines(
&self
) -> &BoxedSlice<FunctionIndex, FunctionBodyPtr>
[src]
&self
) -> &BoxedSlice<FunctionIndex, FunctionBodyPtr>
fn signatures(&self) -> &BoxedSlice<SignatureIndex, VMSharedSignatureIndex>
[src]
fn serialize(&self) -> Result<Vec<u8>, SerializeError>
[src]
fn serialize_to_file(&self, path: &Path) -> Result<(), SerializeError>
[src]
fn preinstantiate(&self) -> Result<(), InstantiationError>
[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 DummyArtifact
impl Send for DummyArtifact
impl Sync for DummyArtifact
impl Unpin for DummyArtifact
impl UnwindSafe for DummyArtifact
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
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>,