Skip to main content

TargetPools

Trait TargetPools 

Source
pub trait TargetPools:
    Debug
    + Send
    + Sync {
Show 16 methods // Provided methods fn add_health_check( &self, _req: AddHealthCheckRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn add_instance( &self, _req: AddInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn aggregated_list( &self, _req: AggregatedListRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TargetPoolAggregatedList>>> + Send { ... } fn delete( &self, _req: DeleteRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get( &self, _req: GetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TargetPool>>> + Send { ... } fn get_health( &self, _req: GetHealthRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TargetPoolInstanceHealth>>> + Send { ... } fn insert( &self, _req: InsertRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn list( &self, _req: ListRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TargetPoolList>>> + Send { ... } fn remove_health_check( &self, _req: RemoveHealthCheckRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn remove_instance( &self, _req: RemoveInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn set_backup( &self, _req: SetBackupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn set_security_policy( &self, _req: SetSecurityPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestPermissionsResponse>>> + Send { ... } fn get_operation( &self, _req: GetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy> { ... } fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Available on crate feature target-pools only.
Expand description

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

Application developers may need to implement this trait to mock client::TargetPools. In other use-cases, application developers only use client::TargetPools 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 add_health_check( &self, _req: AddHealthCheckRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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.

Source

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.

Implementors§