pub struct Gossip<N, const MTU: usize = 256, const OUT: usize = 2048> { /* private fields */ }Expand description
Epidemic gossip flood over a 4-connected torus mesh.
Implements NetworkWrite (wrap + flood) and
NetworkRead (receive, dedup, forward, deliver).
Implementations§
Trait Implementations§
Source§impl<N, const MTU: usize, const OUT: usize> NetworkRead for Gossip<N, MTU, OUT>where
N: Datalink,
impl<N, const MTU: usize, const OUT: usize> NetworkRead for Gossip<N, MTU, OUT>where
N: Datalink,
Auto Trait Implementations§
impl<N, const MTU: usize, const OUT: usize> Freeze for Gossip<N, MTU, OUT>where
N: Freeze,
impl<N, const MTU: usize, const OUT: usize> RefUnwindSafe for Gossip<N, MTU, OUT>where
N: RefUnwindSafe,
impl<N, const MTU: usize, const OUT: usize> Send for Gossip<N, MTU, OUT>where
N: Send,
impl<N, const MTU: usize, const OUT: usize> Sync for Gossip<N, MTU, OUT>where
N: Sync,
impl<N, const MTU: usize, const OUT: usize> Unpin for Gossip<N, MTU, OUT>where
N: Unpin,
impl<N, const MTU: usize, const OUT: usize> UnsafeUnpin for Gossip<N, MTU, OUT>where
N: UnsafeUnpin,
impl<N, const MTU: usize, const OUT: usize> UnwindSafe for Gossip<N, MTU, OUT>where
N: UnwindSafe,
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