#[non_exhaustive]pub enum ClassicGroupState {
Unknown,
PreparingRebalance,
CompletingRebalance,
Stable,
Dead,
Empty,
}Expand description
The state of a classic group.
Corresponds to org.apache.kafka.common.ClassicGroupState.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
An unrecognized classic 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.
Implementations§
Source§impl ClassicGroupState
impl ClassicGroupState
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
The display name of this classic 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 classic group state lookup by string name.
Returns ClassicGroupState::Unknown if the name is unrecognized,
mirroring Java’s parse.
Trait Implementations§
Source§impl Clone for ClassicGroupState
impl Clone for ClassicGroupState
Source§fn clone(&self) -> ClassicGroupState
fn clone(&self) -> ClassicGroupState
Returns a duplicate of the value. Read more
1.0.0 · 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 ClassicGroupState
impl Debug for ClassicGroupState
Source§impl Display for ClassicGroupState
impl Display for ClassicGroupState
Source§impl Hash for ClassicGroupState
impl Hash for ClassicGroupState
Source§impl PartialEq for ClassicGroupState
impl PartialEq for ClassicGroupState
impl Copy for ClassicGroupState
impl Eq for ClassicGroupState
impl StructuralPartialEq for ClassicGroupState
Auto Trait Implementations§
impl Freeze for ClassicGroupState
impl RefUnwindSafe for ClassicGroupState
impl Send for ClassicGroupState
impl Sync for ClassicGroupState
impl Unpin for ClassicGroupState
impl UnsafeUnpin for ClassicGroupState
impl UnwindSafe for ClassicGroupState
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more