Skip to main content

IpcRegistrar

Trait IpcRegistrar 

Source
pub trait IpcRegistrar: Send + Sync {
    // Required methods
    fn register(
        &mut self,
        name: &str,
        handler: IpcHandler,
    ) -> Result<(), PluginError>;
    fn register_workflow_step_type(
        &mut self,
        definition: WorkflowStepTypeDefinition,
    ) -> Result<(), PluginError>;
}

Required Methods§

Source

fn register( &mut self, name: &str, handler: IpcHandler, ) -> Result<(), PluginError>

Register a command callable from the frontend. On the wire the command name is prefixed: plugin_{plugin_id}_{name}

Source

fn register_workflow_step_type( &mut self, definition: WorkflowStepTypeDefinition, ) -> Result<(), PluginError>

Register a workflow step type (Level 4).

Implementors§