pub trait Scheduler: Send + Sync {
// Required methods
fn schedule(&self, job: Job) -> Result<()>;
fn stop<'life0, 'async_trait>(
&'life0 self,
await_termination: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn schedule_with_completion(&self, job: Job, completion: Job) -> Result<()> { ... }
}Expand description
Scheduler defines a set of API to schedule Jobs
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".