pub struct Ns<'a> {
pub nsdname: Name<'a>,
}Expand description
NS record data: an authoritative name server (RFC 1035 §3.3.11).
Fields§
§nsdname: Name<'a>The nsdname domain name.
Implementations§
Trait Implementations§
Source§impl ComposeRdata for Ns<'_>
impl ComposeRdata for Ns<'_>
impl<'a> Copy for Ns<'a>
impl<'a> Eq for Ns<'a>
Source§impl<'a> ParseRdata<'a> for Ns<'a>
impl<'a> ParseRdata<'a> for Ns<'a>
Source§fn parse_rdata(rdata: &mut WireReader<'a>) -> Result<Self>
fn parse_rdata(rdata: &mut WireReader<'a>) -> 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 Ns<'_>
impl ParseRdataText for Ns<'_>
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<()>
<domain-name>, relative to the origin unless it ends in a
dot (RFC 1035 §5.1).
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 moreimpl<'a> StructuralPartialEq for Ns<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ns<'a>
impl<'a> RefUnwindSafe for Ns<'a>
impl<'a> Send for Ns<'a>
impl<'a> Sync for Ns<'a>
impl<'a> Unpin for Ns<'a>
impl<'a> UnsafeUnpin for Ns<'a>
impl<'a> UnwindSafe for Ns<'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