pub struct Aaaa {
pub addr: Ipv6Addr,
}Expand description
AAAA record data: an IPv6 host address (RFC 3596 §2.2). Class IN only.
Fields§
§addr: Ipv6AddrThe address.
Implementations§
Trait Implementations§
Source§impl ComposeRdata for Aaaa
impl ComposeRdata for Aaaa
impl Copy for Aaaa
impl Eq for Aaaa
Source§impl Ord for Aaaa
impl Ord for Aaaa
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl ParseRdata<'_> for Aaaa
impl ParseRdata<'_> for Aaaa
Source§const CLASS: Option<Class>
const CLASS: Option<Class>
For class-specific types (RFC 3597 §4: “class-specific” RDATA such as
A and AAAA, whose format is only defined in class IN), the class the
format is defined for. Records of another class are left as
RData::Unknown. None (the default) means class-independent.Source§fn parse_rdata(rdata: &mut WireReader<'_>) -> Result<Self>
fn parse_rdata(rdata: &mut WireReader<'_>) -> Result<Self>
Parses RDATA from
rdata, a reader whose window is exactly the
record’s RDATA (RDLENGTH bytes) but which can still follow
compression pointers into the whole message. Read moreSource§impl ParseRdataText for Aaaa
impl ParseRdataText for Aaaa
Source§fn parse_text<B: OutBuf + ?Sized>(
s: &mut Scanner<'_>,
out: &mut B,
) -> Result<()>
fn parse_text<B: OutBuf + ?Sized>( s: &mut Scanner<'_>, out: &mut B, ) -> Result<()>
An IPv6 address in any RFC 4291 §2.2 text form (RFC 3596 §2.4).
Source§fn from_text<'b>(text: &str, buf: &'b mut [u8]) -> Result<Self>where
Self: ParseRdata<'b>,
fn from_text<'b>(text: &str, buf: &'b mut [u8]) -> Result<Self>where
Self: ParseRdata<'b>,
Parses standalone presentation-format RDATA (relative names are
completed with the root; newlines are blanks) into
buf and
returns a view over it. The RFC 3597 generic form
\# <length> <hex> is accepted too. Read moreSource§impl PartialOrd for Aaaa
impl PartialOrd for Aaaa
impl StructuralPartialEq for Aaaa
Auto Trait Implementations§
impl Freeze for Aaaa
impl RefUnwindSafe for Aaaa
impl Send for Aaaa
impl Sync for Aaaa
impl Unpin for Aaaa
impl UnsafeUnpin for Aaaa
impl UnwindSafe for Aaaa
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