pub struct EmergencyAware { /* private fields */ }Expand description
Emergency broadcast strategy
For emergency events, use maximum fanout to ensure rapid propagation. Automatically switches between normal and emergency modes.
Implementations§
Source§impl EmergencyAware
impl EmergencyAware
Sourcepub fn set_emergency(&self, active: bool)
pub fn set_emergency(&self, active: bool)
Set emergency mode
Sourcepub fn is_emergency(&self) -> bool
pub fn is_emergency(&self) -> bool
Check if in emergency mode
Trait Implementations§
Source§impl Clone for EmergencyAware
impl Clone for EmergencyAware
Source§impl Debug for EmergencyAware
impl Debug for EmergencyAware
Source§impl Default for EmergencyAware
impl Default for EmergencyAware
Source§impl GossipStrategy for EmergencyAware
impl GossipStrategy for EmergencyAware
Source§fn select_peers<'a>(&self, peers: &'a [HivePeer]) -> Vec<&'a HivePeer>
fn select_peers<'a>(&self, peers: &'a [HivePeer]) -> Vec<&'a HivePeer>
Select peers to send a gossip message to Read more
Source§fn should_forward(&self, result: &MergeResult) -> bool
fn should_forward(&self, result: &MergeResult) -> bool
Determine if an update should be forwarded after a merge Read more
Auto Trait Implementations§
impl !Freeze for EmergencyAware
impl RefUnwindSafe for EmergencyAware
impl Send for EmergencyAware
impl Sync for EmergencyAware
impl Unpin for EmergencyAware
impl UnwindSafe for EmergencyAware
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