pub trait ClusterController:
Debug
+ Send
+ Sync {
Show 17 methods
// Provided methods
fn create_cluster(
&self,
_req: CreateClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn update_cluster(
&self,
_req: UpdateClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn stop_cluster(
&self,
_req: StopClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn start_cluster(
&self,
_req: StartClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_cluster(
&self,
_req: DeleteClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_cluster(
&self,
_req: GetClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Cluster>>> + Send { ... }
fn list_clusters(
&self,
_req: ListClustersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListClustersResponse>>> + Send { ... }
fn diagnose_cluster(
&self,
_req: DiagnoseClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_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 { ... }
fn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send { ... }
fn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_operation(
&self,
_req: DeleteOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy> { ... }
fn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Expand description
Defines the trait used to implement super::client::ClusterController.
Application developers may need to implement this trait to mock
client::ClusterController
. In other use-cases, application developers only
use client::ClusterController
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 create_cluster(
&self,
_req: CreateClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_cluster( &self, _req: CreateClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::create_cluster.
Sourcefn update_cluster(
&self,
_req: UpdateClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn update_cluster( &self, _req: UpdateClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::update_cluster.
Sourcefn stop_cluster(
&self,
_req: StopClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn stop_cluster( &self, _req: StopClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::stop_cluster.
Sourcefn start_cluster(
&self,
_req: StartClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn start_cluster( &self, _req: StartClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::start_cluster.
Sourcefn delete_cluster(
&self,
_req: DeleteClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_cluster( &self, _req: DeleteClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::delete_cluster.
Sourcefn get_cluster(
&self,
_req: GetClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Cluster>>> + Send
fn get_cluster( &self, _req: GetClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Cluster>>> + Send
Implements super::client::ClusterController::get_cluster.
Sourcefn list_clusters(
&self,
_req: ListClustersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListClustersResponse>>> + Send
fn list_clusters( &self, _req: ListClustersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListClustersResponse>>> + Send
Implements super::client::ClusterController::list_clusters.
Sourcefn diagnose_cluster(
&self,
_req: DiagnoseClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn diagnose_cluster( &self, _req: DiagnoseClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
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::ClusterController::set_iam_policy.
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::ClusterController::get_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
Sourcefn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::ClusterController::get_operation.
Sourcefn delete_operation(
&self,
_req: DeleteOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy>
fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>
Returns the polling error policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
Sourcefn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy>
fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>
Returns the polling backoff policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
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.