Struct pcap_file::pcapng::blocks::name_resolution::NameResolutionBlock
source · 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 copy of the value. Read more
1.0.0 · 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 NameResolutionBlock<'a>
impl<'a> Debug for NameResolutionBlock<'a>
source§impl<'a> PartialEq<NameResolutionBlock<'a>> for NameResolutionBlock<'a>
impl<'a> PartialEq<NameResolutionBlock<'a>> for NameResolutionBlock<'a>
source§fn eq(&self, other: &NameResolutionBlock<'a>) -> bool
fn eq(&self, other: &NameResolutionBlock<'a>) -> bool
This method 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
enumeration