pub struct DiscoveryConfig {
pub mdns: bool,
pub broadcast: bool,
pub broadcast_port: u16,
pub timeout: Duration,
pub rendezvous_url: Option<String>,
pub rendezvous_refresh_interval: Duration,
pub rendezvous_tag: Option<String>,
}Expand description
Discovery configuration
Fields§
§mdns: boolEnable mDNS discovery
broadcast: boolEnable UDP broadcast discovery
broadcast_port: u16Broadcast port
timeout: DurationDiscovery timeout
rendezvous_url: Option<String>Rendezvous server URL for WAN discovery (e.g., “https://relay.clasp.to”)
rendezvous_refresh_interval: DurationRendezvous refresh interval (how often to re-register, should be < TTL)
rendezvous_tag: Option<String>Filter tag for rendezvous discovery
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 UnsafeUnpin 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