Struct wasmer_engine::ExportFunction
source · [−]pub struct ExportFunction {
pub vm_function: VMFunction,
pub metadata: Option<Arc<ExportFunctionMetadata>>,
}
Expand description
A function export value with an extra function pointer to initialize host environments.
Fields
vm_function: VMFunction
The VM function, containing most of the data.
metadata: Option<Arc<ExportFunctionMetadata>>
Contains functions necessary to create and initialize host envs
with each Instance
as well as being responsible for the
underlying memory of the host env.
Trait Implementations
sourceimpl Clone for ExportFunction
impl Clone for ExportFunction
sourcefn clone(&self) -> ExportFunction
fn clone(&self) -> ExportFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExportFunction
impl Debug for ExportFunction
sourceimpl From<ExportFunction> for Export
impl From<ExportFunction> for Export
sourcefn from(func: ExportFunction) -> Self
fn from(func: ExportFunction) -> Self
Converts to this type from the input type.
sourceimpl MemoryUsage for ExportFunction
impl MemoryUsage for ExportFunction
sourcefn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
sourceimpl PartialEq<ExportFunction> for ExportFunction
impl PartialEq<ExportFunction> for ExportFunction
sourcefn eq(&self, other: &ExportFunction) -> bool
fn eq(&self, other: &ExportFunction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExportFunction) -> bool
fn ne(&self, other: &ExportFunction) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExportFunction
Auto Trait Implementations
impl !RefUnwindSafe for ExportFunction
impl Send for ExportFunction
impl Sync for ExportFunction
impl Unpin for ExportFunction
impl !UnwindSafe for ExportFunction
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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 F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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
sourceimpl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
sourcefn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
sourcefn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref