Enum trust_dns_resolver::config::Protocol [−][src]
pub enum Protocol { Udp, Tcp, }
Expand description
The protocol on which a NameServer should be communicated with
Variants
Expand description
UDP is the traditional DNS port, this is generally the correct choice
Expand description
TCP can be used for large queries, but not all NameServers support it
Implementations
impl Protocol
[src]
impl Protocol
[src]pub fn is_datagram(self) -> bool
[src]
pub fn is_datagram(self) -> bool
[src]Returns true if this is a datagram oriented protocol, e.g. UDP
pub fn is_encrypted(self) -> bool
[src]
pub fn is_encrypted(self) -> bool
[src]Is this an encrypted protocol, i.e. TLS or HTTPS
Trait Implementations
impl Copy for Protocol
[src]
impl Eq for Protocol
[src]
impl StructuralEq for Protocol
[src]
impl StructuralPartialEq for Protocol
[src]
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,