pub struct AstroRunPlugin { /* private fields */ }
Expand description
AstroRunPlugin
enables rapid definition of a synchronous astro-run plugin
without the need to declare a new struct to implement the Plugin
trait.
Implementations§
Source§impl AstroRunPlugin
impl AstroRunPlugin
pub fn builder(name: &'static str) -> PluginBuilder
Trait Implementations§
Source§impl Plugin for AstroRunPlugin
impl Plugin for AstroRunPlugin
fn name(&self) -> &'static str
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_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_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_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,
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_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_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_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,
Auto Trait Implementations§
impl Freeze for AstroRunPlugin
impl !RefUnwindSafe for AstroRunPlugin
impl Send for AstroRunPlugin
impl Sync for AstroRunPlugin
impl Unpin for AstroRunPlugin
impl !UnwindSafe for AstroRunPlugin
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