Skip to main content

dispatch

Function dispatch 

Source
pub unsafe fn dispatch(
    plugin: &dyn PackageManager,
    context: *const PmpxContext,
    out: *mut PmpxCommand,
) -> u32
Expand description

The plugin-side entry point export! exposes as the command capability.

§Safety

See the safety notes of the ABI’s command table: the context must be the host’s, valid and read-only for this call, and out must be writable.