Struct astro_run_server::DefaultScheduler
source · pub struct DefaultScheduler {
pub state: Arc<Mutex<RawMutex, SchedulerState>, Global>,
}Fields§
§state: Arc<Mutex<RawMutex, SchedulerState>, Global>Implementations§
source§impl DefaultScheduler
impl DefaultScheduler
pub fn new() -> DefaultScheduler
Trait Implementations§
source§impl Clone for DefaultScheduler
impl Clone for DefaultScheduler
source§fn clone(&self) -> DefaultScheduler
fn clone(&self) -> DefaultScheduler
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 moresource§impl Scheduler for DefaultScheduler
impl Scheduler for DefaultScheduler
fn schedule<'a, 'b>( &'b self, runners: &'a Vec<RunnerMetadata, Global>, ctx: &Context ) -> Option<&'a RunnerMetadata>where 'b: 'a,
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 !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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request