Struct trust_dns_resolver::config::NameServerConfig
source · pub struct NameServerConfig {
pub socket_addr: SocketAddr,
pub protocol: Protocol,
pub tls_dns_name: Option<String>,
}
Expand description
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
sourceimpl Clone for NameServerConfig
impl Clone for NameServerConfig
sourcefn clone(&self) -> NameServerConfig
fn clone(&self) -> NameServerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NameServerConfig
impl Debug for NameServerConfig
sourceimpl PartialEq<NameServerConfig> for NameServerConfig
impl PartialEq<NameServerConfig> for NameServerConfig
sourcefn eq(&self, other: &NameServerConfig) -> bool
fn eq(&self, other: &NameServerConfig) -> bool
impl Eq for NameServerConfig
impl StructuralEq for NameServerConfig
impl StructuralPartialEq for NameServerConfig
Auto Trait Implementations
impl RefUnwindSafe for NameServerConfig
impl Send for NameServerConfig
impl Sync for NameServerConfig
impl Unpin for NameServerConfig
impl UnwindSafe for NameServerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more