Trait JobManagementApi
Source pub trait JobManagementApi: Send + Sync {
// Required methods
fn cancel_job<'life0, 'async_trait>(
&'life0 self,
params: CancelJobParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CancelJobError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn continue_job<'life0, 'async_trait>(
&'life0 self,
params: ContinueJobParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ContinueJobError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_job<'life0, 'async_trait>(
&'life0 self,
params: GetJobParams,
) -> Pin<Box<dyn Future<Output = Result<Job, Error<GetJobError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_job_tasks<'life0, 'async_trait>(
&'life0 self,
params: GetJobTasksParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, Error<GetJobTasksError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_jobs<'life0, 'async_trait>(
&'life0 self,
params: GetJobsParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<Job>, Error<GetJobsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn pause_job<'life0, 'async_trait>(
&'life0 self,
params: PauseJobParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PauseJobError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}