pub trait DomainMappings:
Debug
+ Send
+ Sync {
// Provided methods
fn list_domain_mappings(
&self,
_req: ListDomainMappingsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListDomainMappingsResponse>>> + Send { ... }
fn get_domain_mapping(
&self,
_req: GetDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DomainMapping>>> + Send { ... }
fn create_domain_mapping(
&self,
_req: CreateDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn update_domain_mapping(
&self,
_req: UpdateDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_domain_mapping(
&self,
_req: DeleteDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + 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 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::DomainMappings.
Application developers may need to implement this trait to mock
client::DomainMappings. In other use-cases, application developers only
use client::DomainMappings 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_domain_mappings(
&self,
_req: ListDomainMappingsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListDomainMappingsResponse>>> + Send
fn list_domain_mappings( &self, _req: ListDomainMappingsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDomainMappingsResponse>>> + Send
Sourcefn get_domain_mapping(
&self,
_req: GetDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DomainMapping>>> + Send
fn get_domain_mapping( &self, _req: GetDomainMappingRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DomainMapping>>> + Send
Sourcefn create_domain_mapping(
&self,
_req: CreateDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_domain_mapping( &self, _req: CreateDomainMappingRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn update_domain_mapping(
&self,
_req: UpdateDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn update_domain_mapping( &self, _req: UpdateDomainMappingRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn delete_domain_mapping(
&self,
_req: DeleteDomainMappingRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_domain_mapping( &self, _req: DeleteDomainMappingRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + 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
Implements super::client::DomainMappings::list_operations.
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::DomainMappings::get_operation.
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.