Trait MutJob

Source
pub trait MutJob {
    // Required method
    fn run_once_mut<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Use this if you never plan on trying to use the same instance of this job multiple times concurrently.

Required Methods§

Source

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

Implementors§

Source§

impl<P, In> MutJob for Dispatch<P, In>
where P: BatchProcessor<In> + Send + Sync, In: Hash + Eq + Clone + Send + Sync + Debug, P::Intermediate: Send + Sync,