pub struct ClassicGroupDescription { /* private fields */ }Expand description
A detailed description of a single classic group in the cluster.
Implementations§
Source§impl ClassicGroupDescription
impl ClassicGroupDescription
Sourcepub fn new(
group_id: impl Into<String>,
protocol: impl Into<String>,
protocol_data: impl Into<String>,
members: Vec<MemberDescription>,
state: ClassicGroupState,
coordinator: Option<Node>,
) -> Self
pub fn new( group_id: impl Into<String>, protocol: impl Into<String>, protocol_data: impl Into<String>, members: Vec<MemberDescription>, state: ClassicGroupState, coordinator: Option<Node>, ) -> Self
Creates a classic group description with no authorized operations.
Java’s six-argument constructor passes Set.of(), an empty set rather than None, as
the authorized operations.
§Arguments
group_id- the id of the classic group.protocol- the group protocol type.protocol_data- the group protocol data.members- the members of the group.state- the group state.coordinator- the group coordinator, orNoneif not known.
Creates a classic group description with all fields.
§Arguments
group_id- the id of the classic group.protocol- the group protocol type.protocol_data- the group protocol data.members- the members of the group.state- the group state.coordinator- the group coordinator, orNoneif not known.authorized_operations- the authorized operations for this group, orNoneif not known.
Sourcepub fn protocol_data(&self) -> &str
pub fn protocol_data(&self) -> &str
Returns the group protocol data. The meaning depends on the group protocol type. For a classic consumer group, this is the partition assignor name. For a classic connect group, this indicates which Connect protocols are enabled.
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Returns whether the group is a simple consumer group (empty protocol).
Sourcepub fn members(&self) -> &[MemberDescription]
pub fn members(&self) -> &[MemberDescription]
Returns the members of the classic group.
Sourcepub fn state(&self) -> ClassicGroupState
pub fn state(&self) -> ClassicGroupState
Returns the classic group state, or ClassicGroupState::Unknown if the state is too new
for us to parse.
Sourcepub fn coordinator(&self) -> Option<&Node>
pub fn coordinator(&self) -> Option<&Node>
Returns the classic group coordinator, or None if not known.
Returns the authorized operations for this group.
Trait Implementations§
Source§impl Clone for ClassicGroupDescription
impl Clone for ClassicGroupDescription
Source§fn clone(&self) -> ClassicGroupDescription
fn clone(&self) -> ClassicGroupDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClassicGroupDescription
impl Debug for ClassicGroupDescription
Source§impl Display for ClassicGroupDescription
impl Display for ClassicGroupDescription
Source§impl Hash for ClassicGroupDescription
impl Hash for ClassicGroupDescription
Source§impl PartialEq for ClassicGroupDescription
impl PartialEq for ClassicGroupDescription
impl Eq for ClassicGroupDescription
impl StructuralPartialEq for ClassicGroupDescription
Auto Trait Implementations§
impl Freeze for ClassicGroupDescription
impl RefUnwindSafe for ClassicGroupDescription
impl Send for ClassicGroupDescription
impl Sync for ClassicGroupDescription
impl Unpin for ClassicGroupDescription
impl UnsafeUnpin for ClassicGroupDescription
impl UnwindSafe for ClassicGroupDescription
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.