Struct astro_run::ExecutionContext
source · pub struct ExecutionContext { /* private fields */ }
Implementations§
source§impl ExecutionContext
impl ExecutionContext
pub fn builder() -> ExecutionContextBuilder
pub async fn run(&self, step: Step) -> StepRunResult
pub async fn is_match(&self, condition: &Condition) -> bool
pub fn on_run_workflow(&self, workflow: Workflow)
pub fn on_run_job(&self, job: Job)
pub fn on_state_change(&self, event: WorkflowStateEvent)
pub fn on_job_completed(&self, result: JobRunResult)
pub fn on_workflow_completed(&self, result: WorkflowRunResult)
Trait Implementations§
source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
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§
impl !RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl !UnwindSafe for ExecutionContext
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