pub struct BroadcastAll;Expand description
Broadcast-all strategy
Sends to all connected peers. Use only for:
- Very small meshes (< 5 nodes)
- Emergency situations requiring immediate propagation
- Testing/debugging
Warning: This is O(N) per round - not suitable for large meshes.
Implementations§
Source§impl BroadcastAll
impl BroadcastAll
Trait Implementations§
Source§impl Clone for BroadcastAll
impl Clone for BroadcastAll
Source§fn clone(&self) -> BroadcastAll
fn clone(&self) -> BroadcastAll
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 BroadcastAll
impl Debug for BroadcastAll
Source§impl Default for BroadcastAll
impl Default for BroadcastAll
Source§fn default() -> BroadcastAll
fn default() -> BroadcastAll
Returns the “default value” for a type. Read more
Source§impl GossipStrategy for BroadcastAll
impl GossipStrategy for BroadcastAll
Source§fn select_peers<'a>(&self, peers: &'a [PeatPeer]) -> Vec<&'a PeatPeer>
fn select_peers<'a>(&self, peers: &'a [PeatPeer]) -> Vec<&'a PeatPeer>
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 BroadcastAll
impl RefUnwindSafe for BroadcastAll
impl Send for BroadcastAll
impl Sync for BroadcastAll
impl Unpin for BroadcastAll
impl UnsafeUnpin for BroadcastAll
impl UnwindSafe for BroadcastAll
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