#[non_exhaustive]pub enum RecordData<'a> {
A(Ipv4Addr),
Ns(Name<'a>),
Cname(Name<'a>),
Mx {
preference: u16,
exchange: Name<'a>,
},
Txt(Cow<'a, str>),
Aaaa(Ipv6Addr),
Unknown(Cow<'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
Mail exchange.
Fields
Txt(Cow<'a, str>)
Text strings
Aaaa(Ipv6Addr)
A host address IPv6
Unknown(Cow<'a, [u8]>)
?: A value has been received that does not correspond to any known type.
Trait Implementations§
Source§impl<'a> Clone for RecordData<'a>
impl<'a> Clone for RecordData<'a>
Source§fn clone(&self) -> RecordData<'a>
fn clone(&self) -> RecordData<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for RecordData<'a>
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§
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