Struct astro_run::PluginBuilder
source · pub struct PluginBuilder { /* private fields */ }Implementations§
source§impl PluginBuilder
impl PluginBuilder
pub fn new(name: &'static str) -> Self
pub fn on_state_change<T>(self, on_state_change: T) -> Selfwhere T: Fn(WorkflowStateEvent) + 'static + Send + Sync,
pub fn on_log<T>(self, on_log: T) -> Selfwhere T: Fn(WorkflowLog) + 'static + Send + Sync,
pub fn on_run_workflow<T>(self, on_run_workflow: T) -> Selfwhere T: Fn(Workflow) + 'static + Send + Sync,
pub fn on_run_job<T>(self, on_run_job: T) -> Selfwhere T: Fn(Job) + 'static + Send + Sync,
pub fn on_run_step<T>(self, on_run_step: T) -> Selfwhere T: Fn(Step) + 'static + Send + Sync,
pub fn on_workflow_completed<T>(self, on_workflow_completed: T) -> Selfwhere T: Fn(WorkflowRunResult) + 'static + Send + Sync,
pub fn on_job_completed<T>(self, on_job_completed: T) -> Selfwhere T: Fn(JobRunResult) + 'static + Send + Sync,
pub fn on_step_completed<T>(self, on_step_completed: T) -> Selfwhere T: Fn(StepRunResult) + 'static + Send + Sync,
pub fn build(self) -> AstroRunPlugin
Auto Trait Implementations§
impl !RefUnwindSafe for PluginBuilder
impl Send for PluginBuilder
impl Sync for PluginBuilder
impl Unpin for PluginBuilder
impl !UnwindSafe for PluginBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more