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§
Sourcefn list_queues(
&self,
_req: ListQueuesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListQueuesResponse>>> + Send
fn list_queues( &self, _req: ListQueuesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListQueuesResponse>>> + Send
Implements super::client::CloudTasks::list_queues.
Sourcefn get_queue(
&self,
_req: GetQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn get_queue( &self, _req: GetQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::get_queue.
Sourcefn create_queue(
&self,
_req: CreateQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn create_queue( &self, _req: CreateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::create_queue.
Sourcefn update_queue(
&self,
_req: UpdateQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn update_queue( &self, _req: UpdateQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::update_queue.
Sourcefn delete_queue(
&self,
_req: DeleteQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_queue( &self, _req: DeleteQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::CloudTasks::delete_queue.
Sourcefn purge_queue(
&self,
_req: PurgeQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn purge_queue( &self, _req: PurgeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::purge_queue.
Sourcefn pause_queue(
&self,
_req: PauseQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn pause_queue( &self, _req: PauseQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::pause_queue.
Sourcefn resume_queue(
&self,
_req: ResumeQueueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Queue>>> + Send
fn resume_queue( &self, _req: ResumeQueueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Queue>>> + Send
Implements super::client::CloudTasks::resume_queue.
Sourcefn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send
fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send
Implements super::client::CloudTasks::get_iam_policy.
Sourcefn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_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
Implements super::client::CloudTasks::set_iam_policy.
Sourcefn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
Implements super::client::CloudTasks::test_iam_permissions.
Sourcefn list_tasks(
&self,
_req: ListTasksRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListTasksResponse>>> + Send
fn list_tasks( &self, _req: ListTasksRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTasksResponse>>> + Send
Implements super::client::CloudTasks::list_tasks.
Sourcefn get_task(
&self,
_req: GetTaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Task>>> + Send
fn get_task( &self, _req: GetTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send
Implements super::client::CloudTasks::get_task.
Sourcefn create_task(
&self,
_req: CreateTaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Task>>> + Send
fn create_task( &self, _req: CreateTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send
Implements super::client::CloudTasks::create_task.
Sourcefn delete_task(
&self,
_req: DeleteTaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_task( &self, _req: DeleteTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::CloudTasks::delete_task.
Sourcefn run_task(
&self,
_req: RunTaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Task>>> + Send
fn run_task( &self, _req: RunTaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Task>>> + Send
Implements super::client::CloudTasks::run_task.
Sourcefn list_locations(
&self,
_req: ListLocationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
Implements super::client::CloudTasks::list_locations.
Sourcefn get_location(
&self,
_req: GetLocationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Location>>> + Send
fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send
Implements super::client::CloudTasks::get_location.
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.