Struct wasmtime_runtime::VMCallerCheckedFuncRef
source · #[repr(C)]pub struct VMCallerCheckedFuncRef {
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 VMCallerCheckedFuncRef
impl Clone for VMCallerCheckedFuncRef
source§fn clone(&self) -> VMCallerCheckedFuncRef
fn clone(&self) -> VMCallerCheckedFuncRef
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 moresource§impl Debug for VMCallerCheckedFuncRef
impl Debug for VMCallerCheckedFuncRef
impl Send for VMCallerCheckedFuncRef
impl Sync for VMCallerCheckedFuncRef
Auto Trait Implementations§
impl RefUnwindSafe for VMCallerCheckedFuncRef
impl Unpin for VMCallerCheckedFuncRef
impl UnwindSafe for VMCallerCheckedFuncRef
Blanket Implementations§
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