Enum pcap_file::pcapng::blocks::section_header::SectionHeaderOption
source · pub enum SectionHeaderOption<'a> {
Comment(Cow<'a, str>),
Hardware(Cow<'a, str>),
OS(Cow<'a, str>),
UserApplication(Cow<'a, str>),
CustomBinary(CustomBinaryOption<'a>),
CustomUtf8(CustomUtf8Option<'a>),
Unknown(UnknownOption<'a>),
}
Expand description
Section Header Block options
Variants§
Comment(Cow<'a, str>)
Comment associated with the current block
Hardware(Cow<'a, str>)
Description of the hardware used to create this section
OS(Cow<'a, str>)
Name of the operating system used to create this section
UserApplication(Cow<'a, str>)
Name of the application used to create this section
CustomBinary(CustomBinaryOption<'a>)
Custom option containing binary octets in the Custom Data portion
CustomUtf8(CustomUtf8Option<'a>)
Custom option containing a UTF-8 string in the Custom Data portion
Unknown(UnknownOption<'a>)
Unknown option
Implementations§
source§impl<'a> SectionHeaderOption<'a>
impl<'a> SectionHeaderOption<'a>
sourcepub fn into_owned(self) -> SectionHeaderOption<'static>
pub fn into_owned(self) -> SectionHeaderOption<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
source§impl<'a> Clone for SectionHeaderOption<'a>
impl<'a> Clone for SectionHeaderOption<'a>
source§fn clone(&self) -> SectionHeaderOption<'a>
fn clone(&self) -> SectionHeaderOption<'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 SectionHeaderOption<'a>
impl<'a> Debug for SectionHeaderOption<'a>
source§impl<'a> PartialEq<SectionHeaderOption<'a>> for SectionHeaderOption<'a>
impl<'a> PartialEq<SectionHeaderOption<'a>> for SectionHeaderOption<'a>
source§fn eq(&self, other: &SectionHeaderOption<'a>) -> bool
fn eq(&self, other: &SectionHeaderOption<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.