pub struct DiscoveryConfig {
pub max_peers: usize,
pub ping_interval: u64,
pub peer_timeout: u64,
pub announce_interval: u64,
pub enabled: bool,
}Expand description
Discovery configuration
Fields§
§max_peers: usizeMaximum number of peers to maintain
ping_interval: u64How often to ping peers (seconds)
peer_timeout: u64Peer timeout (seconds)
announce_interval: u64Discovery announcement interval (seconds)
enabled: boolEnable discovery protocol
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
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 DiscoveryConfig
impl Debug for DiscoveryConfig
Auto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
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