pub enum Membership {
InProgress,
Assigned(Vec<TopicPartition>),
Revoked(Vec<TopicPartition>),
}Expand description
Where membership stands after a step.
Variants§
InProgress
Still joining or syncing; call again.
Assigned(Vec<TopicPartition>)
Assigned and stable. The partitions are this member’s to fetch.
Revoked(Vec<TopicPartition>)
These partitions were given up. The caller must stop fetching them before the next call, because another member is about to be given them.
Under the eager protocol that is everything this member held; under the cooperative one it is only what moved, and the rest keeps being read.
Trait Implementations§
Source§impl Clone for Membership
impl Clone for Membership
Source§fn clone(&self) -> Membership
fn clone(&self) -> Membership
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 moreSource§impl Debug for Membership
impl Debug for Membership
impl Eq for Membership
Source§impl PartialEq for Membership
impl PartialEq for Membership
impl StructuralPartialEq for Membership
Auto Trait Implementations§
impl Freeze for Membership
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnsafeUnpin for Membership
impl UnwindSafe for Membership
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.