pub struct KafkaAdmin { /* private fields */ }Expand description
Client for Kafka admin operations.
Implementations§
Source§impl KafkaAdmin
impl KafkaAdmin
Sourcepub async fn connect(config: AdminConfig) -> Result<Self>
pub async fn connect(config: AdminConfig) -> Result<Self>
Connects to Kafka and returns the client.
Sourcepub async fn create_topics<I>(&self, topics: I) -> Result<()>where
I: IntoIterator<Item = NewTopic>,
pub async fn create_topics<I>(&self, topics: I) -> Result<()>where
I: IntoIterator<Item = NewTopic>,
Create Topics.
Sourcepub async fn delete_topics<I, S>(&self, topics: I) -> Result<()>
pub async fn delete_topics<I, S>(&self, topics: I) -> Result<()>
Delete Topics.
Sourcepub async fn create_partitions<I, S>(&self, partitions: I) -> Result<()>
pub async fn create_partitions<I, S>(&self, partitions: I) -> Result<()>
Create Partitions.
Sourcepub async fn list_topics(&self) -> Result<Vec<TopicListing>>
pub async fn list_topics(&self) -> Result<Vec<TopicListing>>
List Topics.
Sourcepub async fn describe_topics<I, S>(
&self,
topics: I,
) -> Result<Vec<TopicDescription>>
pub async fn describe_topics<I, S>( &self, topics: I, ) -> Result<Vec<TopicDescription>>
Describe Topics.
Sourcepub async fn describe_cluster(&self) -> Result<ClusterDescription>
pub async fn describe_cluster(&self) -> Result<ClusterDescription>
Describe Cluster.
Sourcepub async fn list_consumer_groups(&self) -> Result<Vec<ConsumerGroupListing>>
pub async fn list_consumer_groups(&self) -> Result<Vec<ConsumerGroupListing>>
List Consumer Groups.
Sourcepub async fn describe_consumer_groups<I, S>(
&self,
groups: I,
) -> Result<Vec<ConsumerGroupDescription>>
pub async fn describe_consumer_groups<I, S>( &self, groups: I, ) -> Result<Vec<ConsumerGroupDescription>>
Describe Consumer Groups.
Sourcepub async fn delete_consumer_groups<I, S>(&self, groups: I) -> Result<()>
pub async fn delete_consumer_groups<I, S>(&self, groups: I) -> Result<()>
Delete Consumer Groups.
Sourcepub async fn describe_configs<I>(
&self,
resources: I,
) -> Result<Vec<ConfigResourceConfig>>where
I: IntoIterator<Item = ConfigResource>,
pub async fn describe_configs<I>(
&self,
resources: I,
) -> Result<Vec<ConfigResourceConfig>>where
I: IntoIterator<Item = ConfigResource>,
Describe Configs.
Sourcepub async fn incremental_alter_configs<I>(&self, resources: I) -> Result<()>
pub async fn incremental_alter_configs<I>(&self, resources: I) -> Result<()>
Incremental Alter Configs.
Sourcepub async fn upsert_scram_credential(
&self,
user: impl Into<String>,
mechanism: SaslMechanism,
password: impl AsRef<[u8]>,
) -> Result<()>
pub async fn upsert_scram_credential( &self, user: impl Into<String>, mechanism: SaslMechanism, password: impl AsRef<[u8]>, ) -> Result<()>
Upsert Scram Credential.
Sourcepub async fn upsert_scram_credential_with_iterations(
&self,
user: impl Into<String>,
mechanism: SaslMechanism,
password: impl AsRef<[u8]>,
iterations: i32,
) -> Result<()>
pub async fn upsert_scram_credential_with_iterations( &self, user: impl Into<String>, mechanism: SaslMechanism, password: impl AsRef<[u8]>, iterations: i32, ) -> Result<()>
Upsert Scram Credential With Iterations.
Sourcepub fn config(&self) -> &AdminConfig
pub fn config(&self) -> &AdminConfig
Config.
Sourcepub async fn finalized_feature_levels(&self) -> Result<Vec<BrokerFeatureLevel>>
pub async fn finalized_feature_levels(&self) -> Result<Vec<BrokerFeatureLevel>>
Finalized Feature Levels.
Trait Implementations§
Source§impl Clone for KafkaAdmin
impl Clone for KafkaAdmin
Source§fn clone(&self) -> KafkaAdmin
fn clone(&self) -> KafkaAdmin
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KafkaAdmin
impl RefUnwindSafe for KafkaAdmin
impl Send for KafkaAdmin
impl Sync for KafkaAdmin
impl Unpin for KafkaAdmin
impl UnsafeUnpin for KafkaAdmin
impl UnwindSafe for KafkaAdmin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more