pub struct Engine(_);
Expand description
The engine type
Implementations§
source§impl Engine
impl Engine
sourcepub fn deterministic_id(&self) -> &str
pub fn deterministic_id(&self) -> &str
Returns the deterministic id of this engine
sourcepub unsafe fn deserialize_unchecked(
&self,
bytes: &[u8]
) -> Result<Arc<Artifact>, DeserializeError>
pub unsafe fn deserialize_unchecked( &self, bytes: &[u8] ) -> Result<Arc<Artifact>, DeserializeError>
Deserializes a WebAssembly module which was previously serialized with
Module::serialize
.
NOTE: you should almost always prefer Self::deserialize
.
Safety
sourcepub unsafe fn deserialize(
&self,
bytes: &[u8]
) -> Result<Arc<Artifact>, DeserializeError>
pub unsafe fn deserialize( &self, bytes: &[u8] ) -> Result<Arc<Artifact>, DeserializeError>
Deserializes a WebAssembly module which was previously serialized with
Module::serialize
.
Safety
sourcepub unsafe fn deserialize_from_file_unchecked(
&self,
file_ref: &Path
) -> Result<Arc<Artifact>, DeserializeError>
pub unsafe fn deserialize_from_file_unchecked( &self, file_ref: &Path ) -> Result<Arc<Artifact>, DeserializeError>
Load a serialized WebAssembly module from a file and deserialize it.
NOTE: you should almost always prefer Self::deserialize_from_file
.
Safety
sourcepub unsafe fn deserialize_from_file(
&self,
file_ref: &Path
) -> Result<Arc<Artifact>, DeserializeError>
pub unsafe fn deserialize_from_file( &self, file_ref: &Path ) -> Result<Arc<Artifact>, DeserializeError>
Load a serialized WebAssembly module from a file and deserialize it.
Safety
Trait Implementations§
source§impl AsEngineRef for Engine
impl AsEngineRef for Engine
source§fn as_engine_ref(&self) -> EngineRef<'_>
fn as_engine_ref(&self) -> EngineRef<'_>
Returns a
EngineRef
pointing to the underlying context.Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.