pub struct A { /* private fields */ }Expand description
Parsed A record rdata.
Implementations§
Source§impl A
impl A
Sourcepub fn try_from_rdata(rdata: &[u8]) -> Result<Self, ParseError>
pub fn try_from_rdata(rdata: &[u8]) -> Result<Self, ParseError>
Parses a 4-byte IPv4 address from rdata.
rdata MUST be exactly 4 bytes (RFC 1035 §3.4.1). A
shorter slice yields BufferTooShort; an oversize slice would
previously have been silently truncated, which is wire-level
undefined behaviour and could mask a protocol error from the
caller.
Trait Implementations§
impl Copy for A
impl Eq for A
impl StructuralPartialEq for A
Auto Trait Implementations§
impl Freeze for A
impl RefUnwindSafe for A
impl Send for A
impl Sync for A
impl Unpin for A
impl UnsafeUnpin for A
impl UnwindSafe for 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