Struct astro_run_server::DefaultScheduler
source · pub struct DefaultScheduler {
pub state: Arc<Mutex<RawMutex, SchedulerState>>,
}Fields§
§state: Arc<Mutex<RawMutex, SchedulerState>>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, 'life0, 'async_trait>(
&'b self,
runners: &'a Vec<RunnerMetadata>,
ctx: &'life0 Context
) -> Pin<Box<dyn Future<Output = Option<&'a RunnerMetadata>> + Send + 'async_trait>>where
'a: 'async_trait,
'b: 'async_trait,
'b: 'a,
'life0: 'async_trait,
DefaultScheduler: '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 !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