pub struct Config {
pub fanout: usize,
pub rounds: u32,
pub window: usize,
}Expand description
How this instance gossips.
Fields§
§fanout: usizeThe book’s k — how many peers a relay addresses. Must be smaller than the membership for
the abstraction to be doing anything; see Config::fanout.
rounds: u32The book’s R — how many hops a message travels before it stops being relayed.
window: usizeHow many identifiers to remember per sender. See the module note on the retention window.
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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