pub struct SignalBasedFanout { /* private fields */ }Expand description
Signal-strength based selection
Prefers peers with stronger signal (better reliability). Falls back to random selection for peers with similar signal.
Implementations§
Trait Implementations§
Source§impl Clone for SignalBasedFanout
impl Clone for SignalBasedFanout
Source§fn clone(&self) -> SignalBasedFanout
fn clone(&self) -> SignalBasedFanout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalBasedFanout
impl Debug for SignalBasedFanout
Source§impl Default for SignalBasedFanout
impl Default for SignalBasedFanout
Source§impl GossipStrategy for SignalBasedFanout
impl GossipStrategy for SignalBasedFanout
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 SignalBasedFanout
impl RefUnwindSafe for SignalBasedFanout
impl Send for SignalBasedFanout
impl Sync for SignalBasedFanout
impl Unpin for SignalBasedFanout
impl UnwindSafe for SignalBasedFanout
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