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 NameServerConfigfn clone(&self) -> NameServerConfig[src]
fn clone(&self) -> NameServerConfigReturns 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 NameServerConfigfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for NameServerConfig[src]
impl Eq for NameServerConfigimpl PartialEq for NameServerConfig[src]
impl PartialEq for NameServerConfigfn eq(&self, other: &NameServerConfig) -> bool[src]
fn eq(&self, other: &NameServerConfig) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for NameServerConfig
impl Send for NameServerConfigimpl Sync for NameServerConfig
impl Sync for NameServerConfig