Struct trust_dns_resolver::config::NameServerConfig [−][src]
pub struct NameServerConfig { pub socket_addr: SocketAddr, pub protocol: Protocol, pub tls_dns_name: Option<String>, }
Configuration for the NameServer
Fields
socket_addr: SocketAddr
The address which the DNS NameServer is registered at.
protocol: Protocol
The protocol to use when communicating with the NameServer.
tls_dns_name: Option<String>
SPKI name, only relavent for TLS connections
Trait Implementations
impl Clone for NameServerConfig
[src]
impl Clone for NameServerConfig
fn clone(&self) -> NameServerConfig
[src]
fn clone(&self) -> NameServerConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for NameServerConfig
[src]
impl Debug for NameServerConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for NameServerConfig
[src]
impl Eq for NameServerConfig
impl PartialEq for NameServerConfig
[src]
impl PartialEq for NameServerConfig
fn eq(&self, other: &NameServerConfig) -> bool
[src]
fn eq(&self, other: &NameServerConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NameServerConfig) -> bool
[src]
fn ne(&self, other: &NameServerConfig) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for NameServerConfig
impl Send for NameServerConfig
impl Sync for NameServerConfig
impl Sync for NameServerConfig