Enum trust_dns_resolver::config::Protocol[][src]

pub enum Protocol {
    Udp,
    Tcp,
}

The protocol on which a NameServer should be communicated with

Variants

UDP is the traditional DNS port, this is generally the correct choice

TCP can be used for large queries, but not all NameServers support it

Methods

impl Protocol
[src]

Returns true if this is a datagram oriented protocol, e.g. UDP

Returns true if this is a stream oriented protocol, e.g. TCP

Trait Implementations

impl Clone for Protocol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Protocol
[src]

impl Debug for Protocol
[src]

Formats the value using the given formatter. Read more

impl Eq for Protocol
[src]

impl PartialEq for Protocol
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Protocol

impl Sync for Protocol