Trait QueueRestApi
Source pub trait QueueRestApi {
// Required methods
fn get_queued_jobs<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
page: Option<&'life1 Page>,
origin_filter: Option<&'life2 OriginFilter>,
source_identity_filter: Option<&'life3 SourceIdentityFilter>,
) -> Pin<Box<dyn Future<Output = Result<ResultPage<QueuedJob>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn request_rebuild<'life0, 'async_trait>(
&'life0 self,
request: QueueJobRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_queued_job<'life0, 'async_trait>(
&'life0 self,
id: i32,
) -> Pin<Box<dyn Future<Output = Result<QueuedJob>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn drop_queued_job<'life0, 'async_trait>(
&'life0 self,
id: i32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn drop_queued_jobs<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
origin_filter: Option<&'life1 OriginFilter>,
source_identity_filter: Option<&'life2 SourceIdentityFilter>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn request_work<'life0, 'async_trait>(
&'life0 self,
request: PopQueuedJobRequest,
) -> Pin<Box<dyn Future<Output = Result<JobAssignment>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ping_job<'life0, 'async_trait>(
&'life0 self,
id: i32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}