pub struct Hinfo<'a> {
pub cpu: CharStr<'a>,
pub os: CharStr<'a>,
}Expand description
HINFO record data: host information (RFC 1035 §3.3.2). Also used in
minimal responses to ANY queries (RFC 8482 §4.2).
Fields§
§cpu: CharStr<'a>CPU type.
os: CharStr<'a>Operating system.
Trait Implementations§
Source§impl ComposeRdata for Hinfo<'_>
impl ComposeRdata for Hinfo<'_>
impl<'a> Copy for Hinfo<'a>
impl<'a> Eq for Hinfo<'a>
Source§impl<'a> ParseRdata<'a> for Hinfo<'a>
impl<'a> ParseRdata<'a> for Hinfo<'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 Hinfo<'_>
impl ParseRdataText for Hinfo<'_>
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<()>
<cpu> <os>, two <character-string>s (RFC 1035 §3.3.2).
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 Hinfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for Hinfo<'a>
impl<'a> RefUnwindSafe for Hinfo<'a>
impl<'a> Send for Hinfo<'a>
impl<'a> Sync for Hinfo<'a>
impl<'a> Unpin for Hinfo<'a>
impl<'a> UnsafeUnpin for Hinfo<'a>
impl<'a> UnwindSafe for Hinfo<'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