pub struct NameResolutionBlock<'a> {
pub records: Vec<Record<'a>>,
pub options: Vec<NameResolutionOption<'a>>,
}
Expand description
The Name Resolution Block (NRB) is used to support the correlation of numeric addresses (present in the captured packets) and their corresponding canonical names and it is optional.
Fields§
§records: Vec<Record<'a>>
Records
options: Vec<NameResolutionOption<'a>>
Options
Implementations§
Source§impl<'a> NameResolutionBlock<'a>
impl<'a> NameResolutionBlock<'a>
Sourcepub fn into_owned(self) -> NameResolutionBlock<'static>
pub fn into_owned(self) -> NameResolutionBlock<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
Source§impl<'a> Clone for NameResolutionBlock<'a>
impl<'a> Clone for NameResolutionBlock<'a>
Source§fn clone(&self) -> NameResolutionBlock<'a>
fn clone(&self) -> NameResolutionBlock<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for NameResolutionBlock<'a>
impl<'a> Debug for NameResolutionBlock<'a>
Source§impl<'a> PartialEq for NameResolutionBlock<'a>
impl<'a> PartialEq for NameResolutionBlock<'a>
Source§fn eq(&self, other: &NameResolutionBlock<'a>) -> bool
fn eq(&self, other: &NameResolutionBlock<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<'a> PcapNgBlock<'a> for NameResolutionBlock<'a>
impl<'a> PcapNgBlock<'a> for NameResolutionBlock<'a>
Source§fn from_slice<B: ByteOrder>(
slice: &'a [u8],
) -> Result<(&'a [u8], Self), PcapError>
fn from_slice<B: ByteOrder>( slice: &'a [u8], ) -> Result<(&'a [u8], Self), PcapError>
Parse a new block from a slice
Source§fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
Write the content of a block into a writer
Source§fn into_block(self) -> Block<'a>
fn into_block(self) -> Block<'a>
Convert a block into the
Block
enumerationimpl<'a> Eq for NameResolutionBlock<'a>
impl<'a> StructuralPartialEq for NameResolutionBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for NameResolutionBlock<'a>
impl<'a> RefUnwindSafe for NameResolutionBlock<'a>
impl<'a> Send for NameResolutionBlock<'a>
impl<'a> Sync for NameResolutionBlock<'a>
impl<'a> Unpin for NameResolutionBlock<'a>
impl<'a> UnwindSafe for NameResolutionBlock<'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