pub struct RawCallableInvoker {
pub ctx: *mut c_void,
pub invoke: unsafe fn(*mut c_void, &u64, &[u64]) -> Result<u64, String>,
}Expand description
Raw callable invoker as a function pointer + opaque context.
This is the Send-safe, 'static-safe form of invoke_callable that
extensions (e.g., CFFI) can store in long-lived structs like callback
userdata. The context pointer is valid for the duration of the
originating module function call.
Per ADR-006 §2.7.5 the raw-bits signature (*mut c_void, &u64, &[u64]) -> Result<u64, String> is the stable extension contract — it
does not migrate to KindedSlot. The conversion to KindedSlot
happens inside the runtime-side adapter that constructs this invoker
(the adapter reads the parallel NativeKind from the typed registry
and builds a KindedSlot for runtime-tier dispatch before unpacking
back to u64 for the extension call).
Fields§
§ctx: *mut c_void§invoke: unsafe fn(*mut c_void, &u64, &[u64]) -> Result<u64, String>Implementations§
Trait Implementations§
Source§impl Clone for RawCallableInvoker
impl Clone for RawCallableInvoker
Source§fn clone(&self) -> RawCallableInvoker
fn clone(&self) -> RawCallableInvoker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RawCallableInvoker
Auto Trait Implementations§
impl Freeze for RawCallableInvoker
impl RefUnwindSafe for RawCallableInvoker
impl !Send for RawCallableInvoker
impl !Sync for RawCallableInvoker
impl Unpin for RawCallableInvoker
impl UnsafeUnpin for RawCallableInvoker
impl UnwindSafe for RawCallableInvoker
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