pub trait ManagedKafka:
Debug
+ Send
+ Sync {
Show 29 methods
// Provided methods
fn list_clusters(
&self,
_req: ListClustersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListClustersResponse>>> + Send { ... }
fn get_cluster(
&self,
_req: GetClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Cluster>>> + Send { ... }
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 delete_cluster(
&self,
_req: DeleteClusterRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn list_topics(
&self,
_req: ListTopicsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListTopicsResponse>>> + Send { ... }
fn get_topic(
&self,
_req: GetTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send { ... }
fn create_topic(
&self,
_req: CreateTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send { ... }
fn update_topic(
&self,
_req: UpdateTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send { ... }
fn delete_topic(
&self,
_req: DeleteTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn list_consumer_groups(
&self,
_req: ListConsumerGroupsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListConsumerGroupsResponse>>> + Send { ... }
fn get_consumer_group(
&self,
_req: GetConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send { ... }
fn update_consumer_group(
&self,
_req: UpdateConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send { ... }
fn delete_consumer_group(
&self,
_req: DeleteConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn list_acls(
&self,
_req: ListAclsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListAclsResponse>>> + Send { ... }
fn get_acl(
&self,
_req: GetAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send { ... }
fn create_acl(
&self,
_req: CreateAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send { ... }
fn update_acl(
&self,
_req: UpdateAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send { ... }
fn delete_acl(
&self,
_req: DeleteAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn add_acl_entry(
&self,
_req: AddAclEntryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AddAclEntryResponse>>> + Send { ... }
fn remove_acl_entry(
&self,
_req: RemoveAclEntryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RemoveAclEntryResponse>>> + 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 { ... }
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::ManagedKafka.
Application developers may need to implement this trait to mock
client::ManagedKafka. In other use-cases, application developers only
use client::ManagedKafka 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_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::ManagedKafka::list_clusters.
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::ManagedKafka::get_cluster.
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::ManagedKafka::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::ManagedKafka::update_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::ManagedKafka::delete_cluster.
Sourcefn list_topics(
&self,
_req: ListTopicsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListTopicsResponse>>> + Send
fn list_topics( &self, _req: ListTopicsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTopicsResponse>>> + Send
Implements super::client::ManagedKafka::list_topics.
Sourcefn get_topic(
&self,
_req: GetTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send
fn get_topic( &self, _req: GetTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send
Implements super::client::ManagedKafka::get_topic.
Sourcefn create_topic(
&self,
_req: CreateTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send
fn create_topic( &self, _req: CreateTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send
Implements super::client::ManagedKafka::create_topic.
Sourcefn update_topic(
&self,
_req: UpdateTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Topic>>> + Send
fn update_topic( &self, _req: UpdateTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send
Implements super::client::ManagedKafka::update_topic.
Sourcefn delete_topic(
&self,
_req: DeleteTopicRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_topic( &self, _req: DeleteTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::ManagedKafka::delete_topic.
Sourcefn list_consumer_groups(
&self,
_req: ListConsumerGroupsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListConsumerGroupsResponse>>> + Send
fn list_consumer_groups( &self, _req: ListConsumerGroupsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListConsumerGroupsResponse>>> + Send
Sourcefn get_consumer_group(
&self,
_req: GetConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send
fn get_consumer_group( &self, _req: GetConsumerGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send
Implements super::client::ManagedKafka::get_consumer_group.
Sourcefn update_consumer_group(
&self,
_req: UpdateConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send
fn update_consumer_group( &self, _req: UpdateConsumerGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send
Sourcefn delete_consumer_group(
&self,
_req: DeleteConsumerGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_consumer_group( &self, _req: DeleteConsumerGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn list_acls(
&self,
_req: ListAclsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListAclsResponse>>> + Send
fn list_acls( &self, _req: ListAclsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAclsResponse>>> + Send
Implements super::client::ManagedKafka::list_acls.
Sourcefn get_acl(
&self,
_req: GetAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send
fn get_acl( &self, _req: GetAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send
Implements super::client::ManagedKafka::get_acl.
Sourcefn create_acl(
&self,
_req: CreateAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send
fn create_acl( &self, _req: CreateAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send
Implements super::client::ManagedKafka::create_acl.
Sourcefn update_acl(
&self,
_req: UpdateAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Acl>>> + Send
fn update_acl( &self, _req: UpdateAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send
Implements super::client::ManagedKafka::update_acl.
Sourcefn delete_acl(
&self,
_req: DeleteAclRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_acl( &self, _req: DeleteAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::ManagedKafka::delete_acl.
Sourcefn add_acl_entry(
&self,
_req: AddAclEntryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<AddAclEntryResponse>>> + Send
fn add_acl_entry( &self, _req: AddAclEntryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddAclEntryResponse>>> + Send
Implements super::client::ManagedKafka::add_acl_entry.
Sourcefn remove_acl_entry(
&self,
_req: RemoveAclEntryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RemoveAclEntryResponse>>> + Send
fn remove_acl_entry( &self, _req: RemoveAclEntryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RemoveAclEntryResponse>>> + Send
Implements super::client::ManagedKafka::remove_acl_entry.
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::ManagedKafka::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::ManagedKafka::get_location.
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::ManagedKafka::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::ManagedKafka::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
Implements super::client::ManagedKafka::delete_operation.
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
Implements super::client::ManagedKafka::cancel_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.