#[non_exhaustive]pub enum TypedRr<'a> {
Show 21 variants
A(ARecord<'a>),
Aaaa(AaaaRecord<'a>),
Ns(NsRecord<'a>),
Cname(CnameRecord<'a>),
Soa(SoaRecord<'a>),
Ptr(PtrRecord<'a>),
Hinfo(HinfoRecord<'a>),
Mx(MxRecord<'a>),
Txt(TxtRecord<'a>),
Sig(SigRecord<'a>),
Srv(SrvRecord<'a>),
Naptr(NaptrRecord<'a>),
Opt(OptRecord<'a>),
Tlsa(TlsaRecord<'a>),
Svcb(SvcbRecord<'a>),
Https(HttpsRecord<'a>),
Uri(UriRecord<'a>),
Caa(CaaRecord<'a>),
RawRr(RawRrRecord<'a>),
Any(&'a DnsRr),
Unknown(&'a DnsRr),
}Expand description
Match-friendly enumeration of every typed record view.
Returned by DnsRr::as_typed. Marked #[non_exhaustive] so future
record types can be added without breaking exhaustive matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
A(ARecord<'a>)
IPv4 address record.
Aaaa(AaaaRecord<'a>)
IPv6 address record.
Ns(NsRecord<'a>)
Authoritative nameserver record.
Cname(CnameRecord<'a>)
Canonical name record.
Soa(SoaRecord<'a>)
Start of authority record.
Ptr(PtrRecord<'a>)
Domain name pointer record.
Hinfo(HinfoRecord<'a>)
Host information record.
Mx(MxRecord<'a>)
Mail exchange record.
Txt(TxtRecord<'a>)
Text record.
Sig(SigRecord<'a>)
SIG (RFC 2535 / 2931) record.
Srv(SrvRecord<'a>)
Service location record.
Naptr(NaptrRecord<'a>)
Naming authority pointer record.
Opt(OptRecord<'a>)
EDNS0 OPT pseudo-record.
Tlsa(TlsaRecord<'a>)
DANE TLSA record.
Svcb(SvcbRecord<'a>)
Service binding record.
Https(HttpsRecord<'a>)
HTTPS service binding record.
Uri(UriRecord<'a>)
URI record.
Caa(CaaRecord<'a>)
Certification authority authorization record.
RawRr(RawRrRecord<'a>)
Raw / unparsed record.
Any(&'a DnsRr)
Wildcard request type. Should not appear in responses; carries the underlying generic record for completeness.
Unknown(&'a DnsRr)
Unknown record type. Carries the underlying generic record.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TypedRr<'a>
impl<'a> RefUnwindSafe for TypedRr<'a>
impl<'a> Send for TypedRr<'a>
impl<'a> Sync for TypedRr<'a>
impl<'a> Unpin for TypedRr<'a>
impl<'a> UnsafeUnpin for TypedRr<'a>
impl<'a> UnwindSafe for TypedRr<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more