CloudTasks

Trait CloudTasks 

Source
pub trait CloudTasks:
    Debug
    + Send
    + Sync {
Show 18 methods // Provided methods fn list_queues( &self, _req: ListQueuesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListQueuesResponse>>> + Send { ... } fn get_queue( &self, _req: GetQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn create_queue( &self, _req: CreateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn update_queue( &self, _req: UpdateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn delete_queue( &self, _req: DeleteQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn purge_queue( &self, _req: PurgeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn pause_queue( &self, _req: PauseQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn resume_queue( &self, _req: ResumeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send { ... } fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send { ... } fn list_tasks( &self, _req: ListTasksRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTasksResponse>>> + Send { ... } fn get_task( &self, _req: GetTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send { ... } fn create_task( &self, _req: CreateTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send { ... } fn delete_task( &self, _req: DeleteTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn run_task( &self, _req: RunTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send { ... } fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send { ... }
}
Expand description

Defines the trait used to implement super::client::CloudTasks.

Application developers may need to implement this trait to mock client::CloudTasks. In other use-cases, application developers only use client::CloudTasks and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Source

fn list_queues( &self, _req: ListQueuesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListQueuesResponse>>> + Send

Source

fn get_queue( &self, _req: GetQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn create_queue( &self, _req: CreateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn update_queue( &self, _req: UpdateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn delete_queue( &self, _req: DeleteQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn purge_queue( &self, _req: PurgeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn pause_queue( &self, _req: PauseQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn resume_queue( &self, _req: ResumeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send

Source

fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send

Source

fn list_tasks( &self, _req: ListTasksRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTasksResponse>>> + Send

Source

fn get_task( &self, _req: GetTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send

Source

fn create_task( &self, _req: CreateTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send

Source

fn delete_task( &self, _req: DeleteTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn run_task( &self, _req: RunTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§