Struct pcap_file::pcapng::blocks::name_resolution::Ipv4Record
source · pub struct Ipv4Record<'a> {
pub ip_addr: Cow<'a, [u8]>,
pub names: Vec<Cow<'a, str>>,
}
Expand description
Ipv4 records
Fields§
§ip_addr: Cow<'a, [u8]>
IPv4 Addr
names: Vec<Cow<'a, str>>
Fqdn
Implementations§
source§impl<'a> Ipv4Record<'a>
impl<'a> Ipv4Record<'a>
sourcepub fn into_owned(self) -> Ipv4Record<'static>
pub fn into_owned(self) -> Ipv4Record<'static>
Returns a version of self
with all fields converted to owning versions.
source§impl<'a> Ipv4Record<'a>
impl<'a> Ipv4Record<'a>
sourcepub fn from_slice(slice: &'a [u8]) -> Result<Self, PcapError>
pub fn from_slice(slice: &'a [u8]) -> Result<Self, PcapError>
Parse a Ipv4Record
from a slice
Trait Implementations§
source§impl<'a> Clone for Ipv4Record<'a>
impl<'a> Clone for Ipv4Record<'a>
source§fn clone(&self) -> Ipv4Record<'a>
fn clone(&self) -> Ipv4Record<'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 Ipv4Record<'a>
impl<'a> Debug for Ipv4Record<'a>
source§impl<'a> PartialEq<Ipv4Record<'a>> for Ipv4Record<'a>
impl<'a> PartialEq<Ipv4Record<'a>> for Ipv4Record<'a>
source§fn eq(&self, other: &Ipv4Record<'a>) -> bool
fn eq(&self, other: &Ipv4Record<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.