pub struct Eui48 {
pub address: [u8; 6],
}Expand description
EUI48 record data: an IEEE EUI-48 address, e.g. a MAC address
(RFC 7043 §3).
Fields§
§address: [u8; 6]The address octets, in transmission order.
Implementations§
Trait Implementations§
Source§impl ComposeRdata for Eui48
impl ComposeRdata for Eui48
impl Copy for Eui48
impl Eq for Eui48
Source§impl<'a> ParseRdata<'a> for Eui48
impl<'a> ParseRdata<'a> for Eui48
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 Eui48
impl ParseRdataText for Eui48
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<()>
Hyphen-separated hexadecimal octets (RFC 7043 §3.2, §4.2). BIND also accepts single-digit octets, so this does too.
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 Eui48
Auto Trait Implementations§
impl Freeze for Eui48
impl RefUnwindSafe for Eui48
impl Send for Eui48
impl Sync for Eui48
impl Unpin for Eui48
impl UnsafeUnpin for Eui48
impl UnwindSafe for Eui48
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