pub struct Client { /* private fields */ }
Expand description
A Kafka client.
This client is Send + Sync + Clone
, and cloning this client to share it among application
tasks is encouraged.
This client spawns a task which manages the full lifecycle of interaction with a Kafka cluster, include initial broker connections based on seed list, cluster metadata discovery, connections to new brokers, establish API versions of brokers, handling reconnects, and anything else related to maintain connections to a Kafka cluster.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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