pub enum Rebalance<'a> {
Assign(&'a TopicPartitionList),
Revoke(&'a TopicPartitionList),
Error(String),
}
Expand description
Rebalance information.
Variants§
Assign(&'a TopicPartitionList)
A new partition assignment is received.
Revoke(&'a TopicPartitionList)
A new partition revocation is received.
Error(String)
Unexpected error from Kafka.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Rebalance<'a>
impl<'a> RefUnwindSafe for Rebalance<'a>
impl<'a> Send for Rebalance<'a>
impl<'a> Sync for Rebalance<'a>
impl<'a> Unpin for Rebalance<'a>
impl<'a> UnwindSafe for Rebalance<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)