Skip to main content

WorkExecutor

Trait WorkExecutor 

Source
pub trait WorkExecutor: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        work: ScheduledWork,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Executor describes a target runtime that can handle scheduled work.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, work: ScheduledWork, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§