Struct lightspeed_scheduler::JobExecutor [−][src]
pub struct JobExecutor { /* fields omitted */ }
Implementations
pub async fn add_job(
&self,
schedule: &dyn TryToScheduler,
job: Job
) -> Result<(), SchedulerError>
pub async fn add_job(
&self,
schedule: &dyn TryToScheduler,
job: Job
) -> Result<(), SchedulerError>
Adds a job to the JobExecutor.
pub async fn add_job_with_multi_schedule(
&self,
schedule: &[&dyn TryToScheduler],
job: Job
) -> Result<(), SchedulerError>
pub async fn add_job_with_multi_schedule(
&self,
schedule: &[&dyn TryToScheduler],
job: Job
) -> Result<(), SchedulerError>
Adds a job to the JobExecutor.
Adds a job to the JobExecutor.
Starts the JobExecutor
Sets the sleep time between checks for pending Jobs. The default is 1 second.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for JobExecutor
impl Send for JobExecutor
impl Sync for JobExecutor
impl Unpin for JobExecutor
impl !UnwindSafe for JobExecutor
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more