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 moresource§impl Debug for VMCallerCheckedAnyfunc
impl Debug for VMCallerCheckedAnyfunc
impl Send for VMCallerCheckedAnyfunc
impl Sync for VMCallerCheckedAnyfunc
Auto Trait Implementations§
impl RefUnwindSafe for VMCallerCheckedAnyfunc
impl Unpin for VMCallerCheckedAnyfunc
impl UnwindSafe for VMCallerCheckedAnyfunc
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