Reschedule

Trait Reschedule 

Source
pub trait Reschedule: Backend {
    // Required method
    fn reschedule(
        &mut self,
        task: Task<Self::Args, Self::Context, Self::IdType>,
        wait: Duration,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description

Allows rescheduling a task for later execution

Required Methods§

Source

fn reschedule( &mut self, task: Task<Self::Args, Self::Context, Self::IdType>, wait: Duration, ) -> impl Future<Output = Result<(), Self::Error>> + Send

Reschedule the task after a specified duration

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§