Trait Plugin

Source
pub trait Plugin: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;

    // Provided methods
    fn on_resolve_dynamic_action<'life0, 'async_trait>(
        &'life0 self,
        _step: UserActionStep,
    ) -> Pin<Box<dyn Future<Output = HookResolveActionResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_run_workflow<'life0, 'async_trait>(
        &'life0 self,
        _event: RunWorkflowEvent,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_run_job<'life0, 'async_trait>(
        &'life0 self,
        _event: RunJobEvent,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_before_run_step<'life0, 'async_trait>(
        &'life0 self,
        step: Step,
    ) -> Pin<Box<dyn Future<Output = HookBeforeRunStepResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_run_step<'life0, 'async_trait>(
        &'life0 self,
        _event: RunStepEvent,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_state_change<'life0, 'async_trait>(
        &'life0 self,
        _event: WorkflowStateEvent,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_log<'life0, 'async_trait>(
        &'life0 self,
        _log: WorkflowLog,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_step_completed<'life0, 'async_trait>(
        &'life0 self,
        _result: StepRunResult,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_job_completed<'life0, 'async_trait>(
        &'life0 self,
        _result: JobRunResult,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_workflow_completed<'life0, 'async_trait>(
        &'life0 self,
        _result: WorkflowRunResult,
    ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn name(&self) -> &'static str

Provided Methods§

Source

fn on_resolve_dynamic_action<'life0, 'async_trait>( &'life0 self, _step: UserActionStep, ) -> Pin<Box<dyn Future<Output = HookResolveActionResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_run_workflow<'life0, 'async_trait>( &'life0 self, _event: RunWorkflowEvent, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_run_job<'life0, 'async_trait>( &'life0 self, _event: RunJobEvent, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_before_run_step<'life0, 'async_trait>( &'life0 self, step: Step, ) -> Pin<Box<dyn Future<Output = HookBeforeRunStepResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_run_step<'life0, 'async_trait>( &'life0 self, _event: RunStepEvent, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_state_change<'life0, 'async_trait>( &'life0 self, _event: WorkflowStateEvent, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_log<'life0, 'async_trait>( &'life0 self, _log: WorkflowLog, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_step_completed<'life0, 'async_trait>( &'life0 self, _result: StepRunResult, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_job_completed<'life0, 'async_trait>( &'life0 self, _result: JobRunResult, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_workflow_completed<'life0, 'async_trait>( &'life0 self, _result: WorkflowRunResult, ) -> Pin<Box<dyn Future<Output = HookNoopResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§