Enum trust_dns_resolver::config::Protocol [−][src]
pub enum Protocol { Udp, Tcp, }
The protocol on which a NameServer should be communicated with
Variants
Udp
UDP is the traditional DNS port, this is generally the correct choice
Tcp
TCP can be used for large queries, but not all NameServers support it
Methods
impl Protocol
[src]
impl Protocol
pub fn is_datagram(&self) -> bool
[src]
pub fn is_datagram(&self) -> bool
Returns true if this is a datagram oriented protocol, e.g. UDP
pub fn is_stream(&self) -> bool
[src]
pub fn is_stream(&self) -> bool
Returns true if this is a stream oriented protocol, e.g. TCP
Trait Implementations
impl Clone for Protocol
[src]
impl Clone for Protocol
fn clone(&self) -> Protocol
[src]
fn clone(&self) -> Protocol
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 Copy for Protocol
[src]
impl Copy for Protocol
impl Debug for Protocol
[src]
impl Debug for Protocol
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 Protocol
[src]
impl Eq for Protocol
impl PartialEq for Protocol
[src]
impl PartialEq for Protocol