Enum dominion::body::RecordData
source · [−]#[non_exhaustive]
pub enum RecordData<'a> {
A(Ipv4Addr),
Ns(Name<'a>),
Cname(Name<'a>),
Mx {
preference: u16,
exchange: Name<'a>,
},
Txt(&'a str),
Aaaa(Ipv6Addr),
Unknown(&'a [u8]),
}
Expand description
The ResourceRecord data associated with the corresponding Name.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A(Ipv4Addr)
A host address.
Ns(Name<'a>)
An authoritative name server
Cname(Name<'a>)
The canonical name for an alias.
Mx
Fields
preference: u16
The preference given to this RR among others at the same owner.
exchange: Name<'a>
A host willing to act as a mail exchange for the owner name.
Mail exchange.
Txt(&'a str)
Text strings
Aaaa(Ipv6Addr)
A host address IPv6
Unknown(&'a [u8])
?: A value has been received that does not correspond to any known type.
Trait Implementations
sourceimpl<'a> Clone for RecordData<'a>
impl<'a> Clone for RecordData<'a>
sourcefn clone(&self) -> RecordData<'a>
fn clone(&self) -> RecordData<'a>
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 more
Auto Trait Implementations
impl<'a> RefUnwindSafe for RecordData<'a>
impl<'a> Send for RecordData<'a>
impl<'a> Sync for RecordData<'a>
impl<'a> Unpin for RecordData<'a>
impl<'a> UnwindSafe for RecordData<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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