Enum wasmer_vm::VMFunctionKind
source · [−]#[repr(C)]
pub enum VMFunctionKind {
Static,
Dynamic,
}
Expand description
A function kind is a calling convention into and out of wasm code.
Variants
Static
A static function has the native signature:
extern "C" (vmctx, arg1, arg2...) -> (result1, result2, ...)
.
This is the default for functions that are defined:
- In the Host, natively
- In the WebAssembly file
Dynamic
A dynamic function has the native signature:
extern "C" (ctx, &[Value]) -> Vec<Value>
.
This is the default for functions that are defined:
- In the Host, dynamically
Trait Implementations
sourceimpl Clone for VMFunctionKind
impl Clone for VMFunctionKind
sourcefn clone(&self) -> VMFunctionKind
fn clone(&self) -> VMFunctionKind
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 VMFunctionKind
impl Debug for VMFunctionKind
sourceimpl MemoryUsage for VMFunctionKind
impl MemoryUsage for VMFunctionKind
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<VMFunctionKind> for VMFunctionKind
impl PartialEq<VMFunctionKind> for VMFunctionKind
impl Copy for VMFunctionKind
impl StructuralPartialEq for VMFunctionKind
Auto Trait Implementations
impl RefUnwindSafe for VMFunctionKind
impl Send for VMFunctionKind
impl Sync for VMFunctionKind
impl Unpin for VMFunctionKind
impl UnwindSafe for VMFunctionKind
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