pub struct NetbiosNsPacket<'a> { /* private fields */ }Implementations§
Source§impl<'a> NetbiosNsPacket<'a>
impl<'a> NetbiosNsPacket<'a>
pub fn new(buf: &'a [u8]) -> Option<Self>
pub fn transaction_id(&self) -> u16
pub fn flags(&self) -> u16
pub fn is_query(&self) -> bool
pub fn opcode(&self) -> u8
pub fn is_broadcast(&self) -> bool
pub fn is_truncated(&self) -> bool
pub fn is_recursion_desired(&self) -> bool
pub fn question_name(&self) -> String
pub fn question_type(&self) -> NetbiosNameType
Trait Implementations§
Source§impl<'a> Clone for NetbiosNsPacket<'a>
impl<'a> Clone for NetbiosNsPacket<'a>
Source§fn clone(&self) -> NetbiosNsPacket<'a>
fn clone(&self) -> NetbiosNsPacket<'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 NetbiosNsPacket<'a>
impl<'a> Debug for NetbiosNsPacket<'a>
Source§impl<'a> From<NetbiosNsPacket<'a>> for AppPacket<'a>
impl<'a> From<NetbiosNsPacket<'a>> for AppPacket<'a>
Source§fn from(p: NetbiosNsPacket<'a>) -> Self
fn from(p: NetbiosNsPacket<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for NetbiosNsPacket<'a>
impl<'a> RefUnwindSafe for NetbiosNsPacket<'a>
impl<'a> Send for NetbiosNsPacket<'a>
impl<'a> Sync for NetbiosNsPacket<'a>
impl<'a> Unpin for NetbiosNsPacket<'a>
impl<'a> UnsafeUnpin for NetbiosNsPacket<'a>
impl<'a> UnwindSafe for NetbiosNsPacket<'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