pub struct DiscoveryOptions {
pub announce_interval: Duration,
pub discovery_timeout: Duration,
pub node_ttl: Duration,
pub debounce_window: Duration,
pub use_multicast: bool,
pub local_network_only: bool,
pub multicast_group: String,
}Expand description
Configuration options for node discovery
Fields§
§announce_interval: DurationHow often to announce this node’s presence (in seconds)
discovery_timeout: DurationTimeout for discovery operations (in seconds)
node_ttl: DurationTime-to-live for discovered nodes (in seconds)
debounce_window: DurationPer-peer debounce window to coalesce bursty events
use_multicast: boolWhether to use multicast for discovery (if supported)
local_network_only: boolWhether to limit discovery to the local network
multicast_group: StringThe multicast group address (e.g., “239.255.42.98”)
Trait Implementations§
Source§impl Clone for DiscoveryOptions
impl Clone for DiscoveryOptions
Source§fn clone(&self) -> DiscoveryOptions
fn clone(&self) -> DiscoveryOptions
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 DiscoveryOptions
impl Debug for DiscoveryOptions
Auto Trait Implementations§
impl Freeze for DiscoveryOptions
impl RefUnwindSafe for DiscoveryOptions
impl Send for DiscoveryOptions
impl Sync for DiscoveryOptions
impl Unpin for DiscoveryOptions
impl UnsafeUnpin for DiscoveryOptions
impl UnwindSafe for DiscoveryOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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