pub struct ConsumerGroupDescription { /* private fields */ }Expand description
Description of one Kafka consumer group.
Implementations§
Source§impl ConsumerGroupDescription
impl ConsumerGroupDescription
Sourcepub fn protocol_type(&self) -> &str
pub fn protocol_type(&self) -> &str
Returns the group protocol type, such as consumer.
Sourcepub fn protocol_name(&self) -> &str
pub fn protocol_name(&self) -> &str
Returns the selected group protocol name, such as range.
Sourcepub fn members(&self) -> &[ConsumerGroupMember]
pub fn members(&self) -> &[ConsumerGroupMember]
Returns current members in broker response order.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether Kafka described this group successfully.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns Kafka’s raw group error code.
Sourcepub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
pub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
Returns kafrust’s classification for a non-zero Kafka error code.
Sourcepub fn throttle_time(&self) -> Duration
pub fn throttle_time(&self) -> Duration
Returns the coordinator’s throttle time for this request.
Trait Implementations§
Source§impl Clone for ConsumerGroupDescription
impl Clone for ConsumerGroupDescription
Source§fn clone(&self) -> ConsumerGroupDescription
fn clone(&self) -> ConsumerGroupDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsumerGroupDescription
impl Debug for ConsumerGroupDescription
impl Eq for ConsumerGroupDescription
Source§impl PartialEq for ConsumerGroupDescription
impl PartialEq for ConsumerGroupDescription
impl StructuralPartialEq for ConsumerGroupDescription
Auto Trait Implementations§
impl Freeze for ConsumerGroupDescription
impl RefUnwindSafe for ConsumerGroupDescription
impl Send for ConsumerGroupDescription
impl Sync for ConsumerGroupDescription
impl Unpin for ConsumerGroupDescription
impl UnsafeUnpin for ConsumerGroupDescription
impl UnwindSafe for ConsumerGroupDescription
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