Skip to main content

run

Function run 

Source
pub fn run(p: &Profile, plugin: &Loaded, host: &mut dyn Host) -> i32
Available on crate feature native-plugins only.
Expand description

Run a loaded plugin with host (a host table of the profile’s ABI version). Returns the plugin’s code (abi::RUN_OK, RUN_ERROR, RUN_PANIC, or what else it returned).

The plugin runs as native code with the process’s rights: run only what the owner approved (crate::approved); load has checked its ABI.