pub struct DnsMessageParser { /* private fields */ }
Expand description
A DNS message parser
Implementations§
Source§impl DnsMessageParser
impl DnsMessageParser
pub fn new(raw_message: Vec<u8>) -> Self
pub fn with_options(raw_message: Vec<u8>, options: DnsParserOptions) -> Self
pub fn raw_message(&self) -> &[u8] ⓘ
pub fn parse_as_query_message(&mut self) -> DnsParserResult<DnsQueryMessage>
pub fn parse_as_update_message(&mut self) -> DnsParserResult<DnsUpdateMessage>
pub fn format_unknown_rdata( &mut self, code: u16, rdata: &NULL, ) -> DnsParserResult<(Option<String>, Option<Vec<u8>>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsMessageParser
impl RefUnwindSafe for DnsMessageParser
impl Send for DnsMessageParser
impl Sync for DnsMessageParser
impl Unpin for DnsMessageParser
impl UnwindSafe for DnsMessageParser
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