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