pub enum BrokerHeartbeatDecision {
Missing,
Stale,
Current {
caught_up: bool,
},
}Expand description
How one broker heartbeat relates to the broker’s registration.
Fencing and shutdown are not decided here: the controller’s heartbeat
state machine derives them from the current broker state, as Kafka’s
BrokerHeartbeatManager.calculateNextBrokerState does.
Variants§
Missing
No registration exists for the broker id.
Stale
The heartbeat carries another broker epoch.
Current
The heartbeat carries the registered epoch. The broker has caught up once its metadata offset reaches its registration record, whose offset is the broker epoch.
Trait Implementations§
Source§impl Clone for BrokerHeartbeatDecision
impl Clone for BrokerHeartbeatDecision
Source§fn clone(&self) -> BrokerHeartbeatDecision
fn clone(&self) -> BrokerHeartbeatDecision
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 BrokerHeartbeatDecision
Source§impl Debug for BrokerHeartbeatDecision
impl Debug for BrokerHeartbeatDecision
impl Eq for BrokerHeartbeatDecision
Source§impl PartialEq for BrokerHeartbeatDecision
impl PartialEq for BrokerHeartbeatDecision
impl StructuralPartialEq for BrokerHeartbeatDecision
Auto Trait Implementations§
impl Freeze for BrokerHeartbeatDecision
impl RefUnwindSafe for BrokerHeartbeatDecision
impl Send for BrokerHeartbeatDecision
impl Sync for BrokerHeartbeatDecision
impl Unpin for BrokerHeartbeatDecision
impl UnsafeUnpin for BrokerHeartbeatDecision
impl UnwindSafe for BrokerHeartbeatDecision
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