pub struct ConsumerNeedsClientId<T> { /* private fields */ }Expand description
Stage 2: needs a client id.
Implementations§
Source§impl<T: Transport> ConsumerNeedsClientId<T>
impl<T: Transport> ConsumerNeedsClientId<T>
Sourcepub fn client_id(self, client_id: impl Into<String>) -> ConsumerReady<T>
pub fn client_id(self, client_id: impl Into<String>) -> ConsumerReady<T>
How this client identifies itself to the broker. It appears in the broker’s logs and metrics, so it is worth making it say which service this is.
Auto Trait Implementations§
impl<T> Freeze for ConsumerNeedsClientId<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConsumerNeedsClientId<T>where
T: RefUnwindSafe,
impl<T> Send for ConsumerNeedsClientId<T>where
T: Send,
impl<T> Sync for ConsumerNeedsClientId<T>where
T: Sync,
impl<T> Unpin for ConsumerNeedsClientId<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConsumerNeedsClientId<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConsumerNeedsClientId<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