pub trait ClientOperations: Debug + Send + Sync + 'static {
Show 19 methods
// Required methods
fn add_task<'life0, 'async_trait>(
&'life0 self,
task: TaskDefinition
) -> Pin<Box<dyn Future<Output = Result<Uuid>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn task<'life0, 'async_trait>(
&'life0 self,
task_id: Uuid
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn TaskOperations>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Tasks
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn TaskOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn task_count<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Tasks
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn task_labels<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn task_kinds<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_schedule<'life0, 'async_trait>(
&'life0 self,
schedule: ScheduleDefinition
) -> Pin<Box<dyn Future<Output = Result<Uuid>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn schedule<'life0, 'async_trait>(
&'life0 self,
schedule_id: Uuid
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ScheduleOperations>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Schedules
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn ScheduleOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn schedule_count<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Schedules
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn schedule_labels<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn tasks_exist<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Tasks
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn schedules_exist<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Schedules
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn add_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
tasks: &'life1 mut (dyn ExactSizeIterator<Item = TaskDefinition> + Send)
) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn cancel_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Tasks
) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn tasks_by_ids<'life0, 'async_trait>(
&'life0 self,
task_ids: Vec<Uuid>
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn TaskOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn add_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
schedules: &'life1 mut (dyn ExactSizeIterator<Item = ScheduleDefinition> + Send)
) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn schedules_by_ids<'life0, 'async_trait>(
&'life0 self,
schedule_ids: Vec<Uuid>
) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn ScheduleOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn cancel_schedules<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 Schedules
) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}