pub trait ApiNoContext<C: Send + Sync> {
// Required methods
fn poll_ready(
&self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>;
fn context(&self) -> &C;
fn get_task_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTaskListResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_task_log_by_id<'life0, 'async_trait>(
&'life0 self,
get_task_log_request: GetTaskLogRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTaskLogByIdResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn pause_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<PauseTaskByIdResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resume_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ResumeTaskByIdResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_task<'life0, 'async_trait>(
&'life0 self,
start_task_request: StartTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StartTaskResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<StopTaskByIdResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
API where Context
isn’t passed on every API call
Required Methods§
fn poll_ready( &self, _cx: &mut Context<'_>, ) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
fn context(&self) -> &C
Sourcefn get_task_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTaskListResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTaskListResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get list of running tasks
Sourcefn get_task_log_by_id<'life0, 'async_trait>(
&'life0 self,
get_task_log_request: GetTaskLogRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTaskLogByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_log_by_id<'life0, 'async_trait>(
&'life0 self,
get_task_log_request: GetTaskLogRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTaskLogByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
get log
Sourcefn pause_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<PauseTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<PauseTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pause a task by id
Sourcefn resume_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ResumeTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resume_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ResumeTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resume a task by id
Sourcefn start_task<'life0, 'async_trait>(
&'life0 self,
start_task_request: StartTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StartTaskResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_task<'life0, 'async_trait>(
&'life0 self,
start_task_request: StartTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StartTaskResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start a new task
Sourcefn stop_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<StopTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<StopTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop a task by id
Implementations on Foreign Types§
Source§impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
Source§fn get_task_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTaskListResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTaskListResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get list of running tasks
Source§fn get_task_log_by_id<'life0, 'async_trait>(
&'life0 self,
get_task_log_request: GetTaskLogRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTaskLogByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_log_by_id<'life0, 'async_trait>(
&'life0 self,
get_task_log_request: GetTaskLogRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTaskLogByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
get log
Source§fn pause_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<PauseTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<PauseTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pause a task by id
Source§fn resume_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ResumeTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resume_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ResumeTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resume a task by id
Source§fn start_task<'life0, 'async_trait>(
&'life0 self,
start_task_request: StartTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StartTaskResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_task<'life0, 'async_trait>(
&'life0 self,
start_task_request: StartTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StartTaskResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start a new task
Source§fn stop_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<StopTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_task_by_id<'life0, 'async_trait>(
&'life0 self,
simple_id_request: SimpleIdRequest,
) -> Pin<Box<dyn Future<Output = Result<StopTaskByIdResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop a task by id