Struct astro_run::AstroRunSharedState
source · pub struct AstroRunSharedState(/* private fields */);Implementations§
pub fn new() -> Self
pub fn register_plugin<P: Plugin + 'static>(&self, plugin: P)
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, event: RunWorkflowEvent)
pub fn on_run_job(&self, event: RunJobEvent)
pub fn on_workflow_completed(&self, result: WorkflowRunResult)
pub fn on_job_completed(&self, result: JobRunResult)
pub fn add_signal(&self, job_id: JobId, signal: AstroRunSignal)
pub fn get_signal(&self, job_id: &JobId) -> Option<AstroRunSignal>
pub fn remove_signal(&self, job_id: &JobId)
pub fn cancel(&self, job_id: &JobId) -> Result<()>
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§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