nu_plugin_engine

Function make_plugin_interface

Source
pub fn make_plugin_interface(
    child: Child,
    comm: PreparedServerCommunication,
    source: Arc<PluginSource>,
    pid: Option<u32>,
    gc: Option<PluginGc>,
) -> Result<PluginInterface, ShellError>
Expand description

Create a plugin interface from a spawned child process.

comm determines the communication type the process was spawned with, and whether stdio will be taken from the child.