pub struct LlmnrPacket<'a> { /* private fields */ }Expand description
LLMNR packet wrapper. Internally delegates to DnsPacket since
LLMNR uses the identical DNS wire format (RFC 4795 §2.1).
Implementations§
Source§impl<'a> LlmnrPacket<'a>
impl<'a> LlmnrPacket<'a>
pub fn new(buf: &'a [u8]) -> Option<Self>
pub fn is_query(&self) -> bool
pub fn is_response(&self) -> bool
Sourcepub fn is_valid_query(&self) -> bool
pub fn is_valid_query(&self) -> bool
LLMNR queries must contain exactly one question (RFC 4795 §2.3).
Sourcepub fn has_conflict(&self) -> bool
pub fn has_conflict(&self) -> bool
The C (conflict) bit in LLMNR responses (RFC 4795 §2.5). When set, multiple responders detected a name conflict.
pub fn questions(&self) -> DnsQuestionIter<'a> ⓘ
pub fn answers(&self) -> DnsRecordIter<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for LlmnrPacket<'a>
impl<'a> Clone for LlmnrPacket<'a>
Source§fn clone(&self) -> LlmnrPacket<'a>
fn clone(&self) -> LlmnrPacket<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LlmnrPacket<'a>
impl<'a> Debug for LlmnrPacket<'a>
Source§impl<'a> From<LlmnrPacket<'a>> for AppPacket<'a>
impl<'a> From<LlmnrPacket<'a>> for AppPacket<'a>
Source§fn from(p: LlmnrPacket<'a>) -> Self
fn from(p: LlmnrPacket<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for LlmnrPacket<'a>
impl<'a> RefUnwindSafe for LlmnrPacket<'a>
impl<'a> Send for LlmnrPacket<'a>
impl<'a> Sync for LlmnrPacket<'a>
impl<'a> Unpin for LlmnrPacket<'a>
impl<'a> UnsafeUnpin for LlmnrPacket<'a>
impl<'a> UnwindSafe for LlmnrPacket<'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