pub trait JobStreamExt<Job>where
    Self: Sized,{
    // Required methods
    fn list_workers<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ExposedWorker>, JobError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_jobs<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        status: &'life1 JobState,
        page: i32
    ) -> Pin<Box<dyn Future<Output = Result<Vec<JobRequest<Job>>, JobError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn counts<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<JobStateCount, JobError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature expose only.
Expand description

JobStream extension usually useful for management via cli, web etc

Required Methods§

source

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

List all Workers that are working on a Job Stream

source

fn list_jobs<'life0, 'life1, 'async_trait>( &'life0 mut self, status: &'life1 JobState, page: i32 ) -> Pin<Box<dyn Future<Output = Result<Vec<JobRequest<Job>>, JobError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch jobs persisted from storage

Provided Methods§

source

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

Returns the counts of jobs in different states

Implementors§