pub struct DefaultScheduler {
pub state: Arc<Mutex<SchedulerState>>,
}Fields§
§state: Arc<Mutex<SchedulerState>>Implementations§
Trait Implementations§
Source§impl Clone for DefaultScheduler
impl Clone for DefaultScheduler
Source§fn clone(&self) -> DefaultScheduler
fn clone(&self) -> DefaultScheduler
Returns a duplicate 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 moreSource§impl Default for DefaultScheduler
impl Default for DefaultScheduler
Source§impl Scheduler for DefaultScheduler
impl Scheduler for DefaultScheduler
fn schedule<'a, 'b, 'life0, 'async_trait>(
&'b self,
runners: &'a [RunnerMetadata],
ctx: &'life0 Context,
) -> Pin<Box<dyn Future<Output = Option<&'a RunnerMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'b: 'async_trait + 'a,
'life0: 'async_trait,
fn on_step_completed(&self, result: StepRunResult)
fn on_job_completed(&self, result: JobRunResult)
fn on_run_workflow(&self, _workflow: Workflow)
fn on_run_job(&self, _job: Job)
fn on_run_step(&self, _step: Step)
fn on_workflow_completed(&self, _result: WorkflowRunResult)
Auto Trait Implementations§
impl Freeze for DefaultScheduler
impl !RefUnwindSafe for DefaultScheduler
impl Send for DefaultScheduler
impl Sync for DefaultScheduler
impl Unpin for DefaultScheduler
impl !UnwindSafe for DefaultScheduler
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