Struct wasmtime_runtime::VMCallerCheckedAnyfunc
source · #[repr(C)]pub struct VMCallerCheckedAnyfunc {
pub func_ptr: NonNull<VMFunctionBody>,
pub type_index: VMSharedSignatureIndex,
pub vmctx: *mut VMOpaqueContext,
}
Expand description
The VM caller-checked “anyfunc” record, for caller-side signature checking. It consists of the actual function pointer and a signature id to be checked by the caller.
Fields§
§func_ptr: NonNull<VMFunctionBody>
Function body.
type_index: VMSharedSignatureIndex
Function signature id.
vmctx: *mut VMOpaqueContext
The VM state associated with this function.
For core wasm instances this will be *mut VMContext
but for the
upcoming implementation of the component model this will be something
else. The actual definition of what this pointer points to depends on
the definition of func_ptr
and what compiled it.
Trait Implementations§
source§impl Clone for VMCallerCheckedAnyfunc
impl Clone for VMCallerCheckedAnyfunc
source§fn clone(&self) -> VMCallerCheckedAnyfunc
fn clone(&self) -> VMCallerCheckedAnyfunc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more