Struct astro_run::AstroRunSharedState
source · pub struct AstroRunSharedState(_);
Implementations§
pub fn new() -> Self
pub fn register_plugin(&self, plugin: AstroRunPlugin)
pub fn unregister_plugin(&self, plugin_name: &'static str)
pub fn plugins(&self) -> PluginManager
pub fn register_action<T>(&self, name: impl Into<String>, action: T)where T: Action + 'static,
pub fn unregister_action(&self, name: &str)
pub fn actions(&self) -> Actions
pub fn on_state_change(&self, event: WorkflowStateEvent)
pub fn on_run_workflow(&self, workflow: Workflow)
pub fn on_run_job(&self, job: Job)
pub fn on_workflow_completed(&self, result: WorkflowRunResult)
pub fn on_job_completed(&self, result: JobRunResult)
Trait Implementations§
source§fn clone(&self) -> AstroRunSharedState
fn clone(&self) -> AstroRunSharedState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more