#[non_exhaustive]pub enum GroupState {
Unknown,
PreparingRebalance,
CompletingRebalance,
Stable,
Dead,
Empty,
Assigning,
Reconciling,
NotReady,
}Expand description
The state of a group.
Corresponds to org.apache.kafka.common.GroupState.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
An unrecognized group state (e.g. a state newer than this client).
PreparingRebalance
The group is preparing to rebalance.
CompletingRebalance
The group is completing a rebalance.
Stable
The group is stable.
Dead
The group is dead.
Empty
The group is empty.
Assigning
The group is assigning (consumer/streams groups only).
Reconciling
The group is reconciling (consumer/streams groups only).
NotReady
The group is not ready (streams groups only).
Implementations§
Source§impl GroupState
impl GroupState
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
The display name of this group state (as used on the wire and in
toString).
Mirrors the private name field in Java.
Sourcepub fn parse(name: &str) -> Self
pub fn parse(name: &str) -> Self
Case-insensitive group state lookup by string name.
Returns GroupState::Unknown if the name is unrecognized, mirroring
Java’s parse.
Sourcepub fn group_states_for_type(group_type: GroupType) -> HashSet<GroupState>
pub fn group_states_for_type(group_type: GroupType) -> HashSet<GroupState>
Returns the set of group states applicable to the given group type.
Mirrors GroupState.groupStatesForType.
§Panics
Panics if type is GroupType::Unknown, mirroring Java’s
IllegalArgumentException("Group type not known").
Trait Implementations§
Source§impl Clone for GroupState
impl Clone for GroupState
Source§fn clone(&self) -> GroupState
fn clone(&self) -> GroupState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GroupState
impl Debug for GroupState
Source§impl Display for GroupState
impl Display for GroupState
Source§impl Hash for GroupState
impl Hash for GroupState
Source§impl PartialEq for GroupState
impl PartialEq for GroupState
impl Copy for GroupState
impl Eq for GroupState
impl StructuralPartialEq for GroupState
Auto Trait Implementations§
impl Freeze for GroupState
impl RefUnwindSafe for GroupState
impl Send for GroupState
impl Sync for GroupState
impl Unpin for GroupState
impl UnsafeUnpin for GroupState
impl UnwindSafe for GroupState
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.