Struct pcap_file::pcapng::blocks::name_resolution::UnknownRecord
source · pub struct UnknownRecord<'a> {
pub type_: u16,
pub length: u16,
pub value: Cow<'a, [u8]>,
}
Expand description
Unknown records
Fields§
§type_: u16
Records type
length: u16
Record length
value: Cow<'a, [u8]>
Record body
Implementations§
source§impl<'a> UnknownRecord<'a>
impl<'a> UnknownRecord<'a>
sourcepub fn into_owned(self) -> UnknownRecord<'static>
pub fn into_owned(self) -> UnknownRecord<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
source§impl<'a> Clone for UnknownRecord<'a>
impl<'a> Clone for UnknownRecord<'a>
source§fn clone(&self) -> UnknownRecord<'a>
fn clone(&self) -> UnknownRecord<'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 UnknownRecord<'a>
impl<'a> Debug for UnknownRecord<'a>
source§impl<'a> PartialEq<UnknownRecord<'a>> for UnknownRecord<'a>
impl<'a> PartialEq<UnknownRecord<'a>> for UnknownRecord<'a>
source§fn eq(&self, other: &UnknownRecord<'a>) -> bool
fn eq(&self, other: &UnknownRecord<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.