pub struct ConsumerBuilder<T> { /* private fields */ }Expand description
Stage 1: has a transport, needs a bootstrap list.
Implementations§
Source§impl<T: Transport> ConsumerBuilder<T>
impl<T: Transport> ConsumerBuilder<T>
Sourcepub fn bootstrap<I, S>(self, addrs: I) -> ConsumerNeedsClientId<T>
pub fn bootstrap<I, S>(self, addrs: I) -> ConsumerNeedsClientId<T>
The brokers to contact first. Any one that answers is enough; the rest of the cluster comes from its metadata.
Auto Trait Implementations§
impl<T> Freeze for ConsumerBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConsumerBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ConsumerBuilder<T>where
T: Send,
impl<T> Sync for ConsumerBuilder<T>where
T: Sync,
impl<T> Unpin for ConsumerBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConsumerBuilder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConsumerBuilder<T>where
T: UnwindSafe,
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