pub struct PassiveHandle { /* private fields */ }Expand description
Handle for controlling the passive receiver
Implementations§
Source§impl PassiveHandle
impl PassiveHandle
Sourcepub fn integrity(&self) -> StateIntegrity
pub fn integrity(&self) -> StateIntegrity
Get the current state integrity (for promotion)
Sourcepub fn validator_states(&self) -> HashMap<[u8; 48], ValidatorState>
pub fn validator_states(&self) -> HashMap<[u8; 48], ValidatorState>
Get the current validator states (for promotion)
Sourcepub fn subscribe_failover(&self) -> Receiver<bool>
pub fn subscribe_failover(&self) -> Receiver<bool>
Subscribe to failover notifications
Sourcepub fn should_failover(&self) -> bool
pub fn should_failover(&self) -> bool
Check if we should trigger failover
Sourcepub fn replication_lag(&self) -> u64
pub fn replication_lag(&self) -> u64
Get replication lag
Auto Trait Implementations§
impl Freeze for PassiveHandle
impl !RefUnwindSafe for PassiveHandle
impl Send for PassiveHandle
impl Sync for PassiveHandle
impl Unpin for PassiveHandle
impl !UnwindSafe for PassiveHandle
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