pub struct ConsumerGroupDescription { /* private fields */ }Expand description
A detailed description of a single consumer group in the cluster.
Corresponds to org.apache.kafka.clients.admin.ConsumerGroupDescription.
Note: Java’s @Deprecated(forRemoval = true) constructors that accept a
ConsumerGroupState, and the deprecated state() accessor, are not
translated; use new and group_state.
Implementations§
Source§impl ConsumerGroupDescription
impl ConsumerGroupDescription
Sourcepub fn new(
group_id: impl Into<String>,
is_simple_consumer_group: bool,
members: Vec<MemberDescription>,
partition_assignor: impl Into<String>,
group_type: GroupType,
group_state: GroupState,
coordinator: Option<Node>,
authorized_operations: Option<BTreeSet<AclOperation>>,
group_epoch: Option<i32>,
target_assignment_epoch: Option<i32>,
) -> Self
pub fn new( group_id: impl Into<String>, is_simple_consumer_group: bool, members: Vec<MemberDescription>, partition_assignor: impl Into<String>, group_type: GroupType, group_state: GroupState, coordinator: Option<Node>, authorized_operations: Option<BTreeSet<AclOperation>>, group_epoch: Option<i32>, target_assignment_epoch: Option<i32>, ) -> Self
Creates a consumer group description with all fields.
Mirrors the primary
ConsumerGroupDescription(String, boolean, Collection<MemberDescription>, String, GroupType, GroupState, Node, Set<AclOperation>, Optional<Integer>, Optional<Integer>) constructor. coordinator is None when the
coordinator is not known (Java’s nullable Node).
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Whether the consumer group is simple. Mirrors isSimpleConsumerGroup().
Sourcepub fn members(&self) -> &[MemberDescription]
pub fn members(&self) -> &[MemberDescription]
The members of the consumer group. Mirrors members().
Sourcepub fn partition_assignor(&self) -> &str
pub fn partition_assignor(&self) -> &str
The consumer group partition assignor. Mirrors partitionAssignor().
Sourcepub fn group_type(&self) -> GroupType
pub fn group_type(&self) -> GroupType
The group type. Mirrors type().
Sourcepub fn group_state(&self) -> GroupState
pub fn group_state(&self) -> GroupState
The group state. Mirrors groupState().
Sourcepub fn coordinator(&self) -> Option<&Node>
pub fn coordinator(&self) -> Option<&Node>
The consumer group coordinator, or None if not known. Mirrors
coordinator().
The authorized operations for this group, or None if the broker did not
report them (Java returns null). Mirrors authorizedOperations().
Sourcepub fn group_epoch(&self) -> Option<i32>
pub fn group_epoch(&self) -> Option<i32>
The epoch of the consumer group. Mirrors groupEpoch().
Sourcepub fn target_assignment_epoch(&self) -> Option<i32>
pub fn target_assignment_epoch(&self) -> Option<i32>
The epoch of the target assignment. Mirrors targetAssignmentEpoch().
Trait Implementations§
Source§impl Clone for ConsumerGroupDescription
impl Clone for ConsumerGroupDescription
Source§fn clone(&self) -> ConsumerGroupDescription
fn clone(&self) -> ConsumerGroupDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConsumerGroupDescription
impl Debug for ConsumerGroupDescription
Source§impl PartialEq for ConsumerGroupDescription
impl PartialEq for ConsumerGroupDescription
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.