pub enum NameserverResponse {
Answer {
rrs: Vec<ResourceRecord>,
soa_rr: Option<ResourceRecord>,
},
CNAME {
rrs: Vec<ResourceRecord>,
cname: DomainName,
},
Delegation {
rrs: Vec<ResourceRecord>,
delegation: Nameservers,
},
}
Expand description
A response from a remote nameserver
Variants§
Trait Implementations§
Source§impl Clone for NameserverResponse
impl Clone for NameserverResponse
Source§fn clone(&self) -> NameserverResponse
fn clone(&self) -> NameserverResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NameserverResponse
impl Debug for NameserverResponse
Source§impl Hash for NameserverResponse
impl Hash for NameserverResponse
Source§impl Ord for NameserverResponse
impl Ord for NameserverResponse
Source§fn cmp(&self, other: &NameserverResponse) -> Ordering
fn cmp(&self, other: &NameserverResponse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NameserverResponse
impl PartialEq for NameserverResponse
Source§impl PartialOrd for NameserverResponse
impl PartialOrd for NameserverResponse
impl Eq for NameserverResponse
impl StructuralPartialEq for NameserverResponse
Auto Trait Implementations§
impl !Freeze for NameserverResponse
impl RefUnwindSafe for NameserverResponse
impl Send for NameserverResponse
impl Sync for NameserverResponse
impl Unpin for NameserverResponse
impl UnwindSafe for NameserverResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.