Trait ManagedKafka

Source
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§

Source

fn list_clusters( &self, _req: ListClustersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListClustersResponse>>> + Send

Source

fn get_cluster( &self, _req: GetClusterRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Cluster>>> + Send

Source

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

Source

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

Source

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

Source

fn list_topics( &self, _req: ListTopicsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTopicsResponse>>> + Send

Source

fn get_topic( &self, _req: GetTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send

Source

fn create_topic( &self, _req: CreateTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send

Source

fn update_topic( &self, _req: UpdateTopicRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Topic>>> + Send

Source

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

Source

fn list_consumer_groups( &self, _req: ListConsumerGroupsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListConsumerGroupsResponse>>> + Send

Source

fn get_consumer_group( &self, _req: GetConsumerGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send

Source

fn update_consumer_group( &self, _req: UpdateConsumerGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ConsumerGroup>>> + Send

Source

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

Source

fn list_acls( &self, _req: ListAclsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAclsResponse>>> + Send

Source

fn get_acl( &self, _req: GetAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send

Source

fn create_acl( &self, _req: CreateAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send

Source

fn update_acl( &self, _req: UpdateAclRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Acl>>> + Send

Source

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

Source

fn add_acl_entry( &self, _req: AddAclEntryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AddAclEntryResponse>>> + Send

Source

fn remove_acl_entry( &self, _req: RemoveAclEntryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RemoveAclEntryResponse>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

Source

fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send

Source

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

Source

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

Source

fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + 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§