pub struct GossipConfig {
pub protocol_period: Duration,
pub probe_timeout: Duration,
pub suspicion_mult: u32,
pub indirect_probes: usize,
pub max_piggyback: usize,
pub gossip_port_offset: u16,
}Expand description
Configuration for the gossip protocol.
Fields§
§protocol_period: DurationHow often to run the protocol period (probe a random node).
probe_timeout: DurationHow long to wait for a direct probe response.
suspicion_mult: u32Multiplier for suspicion timeout (protocol_period * suspicion_mult).
indirect_probes: usizeNumber of nodes to ask for indirect probes.
max_piggyback: usizeMaximum number of updates to piggyback per message.
gossip_port_offset: u16Port offset for gossip (data_port + gossip_port_offset).
Trait Implementations§
Source§impl Clone for GossipConfig
impl Clone for GossipConfig
Source§fn clone(&self) -> GossipConfig
fn clone(&self) -> GossipConfig
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 GossipConfig
impl Debug for GossipConfig
Auto Trait Implementations§
impl Freeze for GossipConfig
impl RefUnwindSafe for GossipConfig
impl Send for GossipConfig
impl Sync for GossipConfig
impl Unpin for GossipConfig
impl UnsafeUnpin for GossipConfig
impl UnwindSafe for GossipConfig
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