#[non_exhaustive]pub enum GroupMembershipOperation {
LeaveGroup,
RemainInGroup,
Default,
}Expand description
Enum to specify the group membership operation upon leaving a group.
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.
LeaveGroup
The consumer will leave the group. This is the default for dynamic members, and can be used by static members when they want to permanently leave the group and trigger a rebalance.
RemainInGroup
The consumer will remain in the group. This is the default for static members, allowing them to rejoin quickly without triggering a rebalance. When used by dynamic members, no leave heartbeat will be sent and the member will be removed by the coordinator after the session timeout expires.
Default
Applies the default behavior:
- For static members: The consumer will remain in the group.
- For dynamic members: The consumer will leave the group.
Trait Implementations§
Source§impl Clone for GroupMembershipOperation
impl Clone for GroupMembershipOperation
Source§fn clone(&self) -> GroupMembershipOperation
fn clone(&self) -> GroupMembershipOperation
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 GroupMembershipOperation
impl Debug for GroupMembershipOperation
Source§impl Display for GroupMembershipOperation
Java’s inherited Enum.toString(): the constant’s name.
impl Display for GroupMembershipOperation
Java’s inherited Enum.toString(): the constant’s name.
Source§impl Hash for GroupMembershipOperation
impl Hash for GroupMembershipOperation
Source§impl Ord for GroupMembershipOperation
impl Ord for GroupMembershipOperation
Source§fn cmp(&self, other: &GroupMembershipOperation) -> Ordering
fn cmp(&self, other: &GroupMembershipOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GroupMembershipOperation
impl PartialEq for GroupMembershipOperation
Source§impl PartialOrd for GroupMembershipOperation
impl PartialOrd for GroupMembershipOperation
impl Copy for GroupMembershipOperation
impl Eq for GroupMembershipOperation
impl StructuralPartialEq for GroupMembershipOperation
Auto Trait Implementations§
impl Freeze for GroupMembershipOperation
impl RefUnwindSafe for GroupMembershipOperation
impl Send for GroupMembershipOperation
impl Sync for GroupMembershipOperation
impl Unpin for GroupMembershipOperation
impl UnsafeUnpin for GroupMembershipOperation
impl UnwindSafe for GroupMembershipOperation
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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