pub enum ConsumerEvent {
BecameActive,
BecameInactive,
}Expand description
Event surfaced by a push-delivery ConsumerEventListener (issue #348).
Mirrors Java ConsumerEventListener#becameActive(Consumer, int) /
becameInactive(Consumer, int) — the Failover subscription
active-consumer transitions. magnetar drops the partitionId argument
(single-topic consumers only; a partitioned consumer’s per-partition
event listener is attached per child, so the topic/partition is already
implicit in which consumer’s listener fired).
Variants§
BecameActive
This consumer was promoted to the active Failover consumer.
BecameInactive
This consumer was demoted to Failover stand-by.
Trait Implementations§
Source§impl Clone for ConsumerEvent
impl Clone for ConsumerEvent
Source§fn clone(&self) -> ConsumerEvent
fn clone(&self) -> ConsumerEvent
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 ConsumerEvent
Source§impl Debug for ConsumerEvent
impl Debug for ConsumerEvent
impl Eq for ConsumerEvent
Source§impl Hash for ConsumerEvent
impl Hash for ConsumerEvent
Source§impl PartialEq for ConsumerEvent
impl PartialEq for ConsumerEvent
impl StructuralPartialEq for ConsumerEvent
Auto Trait Implementations§
impl Freeze for ConsumerEvent
impl RefUnwindSafe for ConsumerEvent
impl Send for ConsumerEvent
impl Sync for ConsumerEvent
impl Unpin for ConsumerEvent
impl UnsafeUnpin for ConsumerEvent
impl UnwindSafe for ConsumerEvent
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