pub enum GroupState {
Unknown,
PreparingRebalance,
CompletingRebalance,
Stable,
Dead,
Empty,
Assigning,
Reconciling,
}Expand description
Java org.apache.kafka.common.GroupState (ListGroups StatesFilter).
Wire strings match Java toString (Stable, PreparingRebalance, …).
Self::parse is case-insensitive.
Variants§
Unknown
Java UNKNOWN.
PreparingRebalance
Java PREPARING_REBALANCE.
CompletingRebalance
Java COMPLETING_REBALANCE.
Stable
Java STABLE.
Dead
Java DEAD.
Empty
Java EMPTY.
Assigning
Java ASSIGNING (KIP-848 consumer groups).
Reconciling
Java RECONCILING (KIP-848 consumer groups).
Implementations§
Source§impl GroupState
impl GroupState
Sourcepub fn parse(name: &str) -> Self
pub fn parse(name: &str) -> Self
Java GroupState.parse (case-insensitive; unknown is Self::Unknown).
Sourcepub fn group_states_for_type(ty: GroupType) -> &'static [Self]
pub fn group_states_for_type(ty: GroupType) -> &'static [Self]
Java GroupState.groupStatesForType. GroupType::Unknown is empty
(Java throws).
Trait Implementations§
Source§impl Clone for GroupState
impl Clone for GroupState
Source§fn clone(&self) -> GroupState
fn clone(&self) -> GroupState
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 moreimpl Copy for GroupState
Source§impl Debug for GroupState
impl Debug for GroupState
Source§impl Display for GroupState
impl Display for GroupState
impl Eq for GroupState
Source§impl From<GroupState> for String
impl From<GroupState> for String
Source§fn from(state: GroupState) -> Self
fn from(state: GroupState) -> Self
Converts to this type from the input type.
Source§impl Hash for GroupState
impl Hash for GroupState
Source§impl PartialEq for GroupState
impl PartialEq 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
Mutably borrows from an owned value. Read more