pub enum ConsumerRebalanceEvent {
Revoked(Vec<TopicPartition>),
Assigned(Vec<TopicPartition>),
Lost(Vec<TopicPartition>),
}Expand description
Consumer rebalance notification.
Variants§
Revoked(Vec<TopicPartition>)
Partitions were revoked before being removed from the active assignment.
Assigned(Vec<TopicPartition>)
Partitions were added to the active assignment.
Lost(Vec<TopicPartition>)
Partitions were lost and should not be committed by the callback.
Implementations§
Source§impl ConsumerRebalanceEvent
impl ConsumerRebalanceEvent
Sourcepub fn partitions(&self) -> &[TopicPartition]
pub fn partitions(&self) -> &[TopicPartition]
Returns the affected partitions.
Trait Implementations§
Source§impl Clone for ConsumerRebalanceEvent
impl Clone for ConsumerRebalanceEvent
Source§fn clone(&self) -> ConsumerRebalanceEvent
fn clone(&self) -> ConsumerRebalanceEvent
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 ConsumerRebalanceEvent
impl Debug for ConsumerRebalanceEvent
Source§impl PartialEq for ConsumerRebalanceEvent
impl PartialEq for ConsumerRebalanceEvent
impl Eq for ConsumerRebalanceEvent
impl StructuralPartialEq for ConsumerRebalanceEvent
Auto Trait Implementations§
impl Freeze for ConsumerRebalanceEvent
impl RefUnwindSafe for ConsumerRebalanceEvent
impl Send for ConsumerRebalanceEvent
impl Sync for ConsumerRebalanceEvent
impl Unpin for ConsumerRebalanceEvent
impl UnsafeUnpin for ConsumerRebalanceEvent
impl UnwindSafe for ConsumerRebalanceEvent
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.