pub struct L64 {
pub preference: u16,
pub locator: u64,
}Expand description
L64 record data: a 64-bit ILNPv6 locator (RFC 6742 §2.3).
Fields§
§preference: u16Preference; lower values are preferred.
locator: u64The 64-bit locator.
Trait Implementations§
Source§impl ComposeRdata for L64
impl ComposeRdata for L64
impl Copy for L64
impl Eq for L64
Source§impl<'a> ParseRdata<'a> for L64
impl<'a> ParseRdata<'a> for L64
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 L64
impl ParseRdataText for L64
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<()>
preference xxxx:xxxx:xxxx:xxxx (RFC 6742 §2.1, §2.3).
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 StructuralPartialEq for L64
Auto Trait Implementations§
impl Freeze for L64
impl RefUnwindSafe for L64
impl Send for L64
impl Sync for L64
impl Unpin for L64
impl UnsafeUnpin for L64
impl UnwindSafe for L64
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