pub struct DiscoveryOptions {
pub dns_server: Option<String>,
pub enabled: bool,
}Expand description
DNS-based peer discovery configuration.
Fields§
§dns_server: Option<String>DNS discovery server URL. Uses n0 DNS defaults when None.
enabled: boolWhether to enable DNS discovery. Default: true.
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<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