pub trait TaskRunner: Send + Sync {
// Required method
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 ScheduledTask,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Executes validated ScheduledTask items (used by tests and future batch dispatch).
Required Methods§
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
task: &'life1 ScheduledTask,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".