Struct pcap_parser::pcapng::OptionCode
source · [−]pub struct OptionCode(pub u16);
Tuple Fields
0: u16
Implementations
sourceimpl OptionCode
impl OptionCode
pub const EndOfOpt: OptionCode = OptionCode(0)
pub const Comment: OptionCode = OptionCode(1)
pub const ShbHardware: OptionCode = OptionCode(2)
pub const ShbOs: OptionCode = OptionCode(3)
pub const ShbUserAppl: OptionCode = OptionCode(4)
pub const IfTsresol: OptionCode = OptionCode(9)
pub const IfTsoffset: OptionCode = OptionCode(14)
pub const Custom2988: OptionCode = OptionCode(2988)
pub const Custom2989: OptionCode = OptionCode(2989)
pub const Custom19372: OptionCode = OptionCode(19372)
pub const Custom19373: OptionCode = OptionCode(19373)
Trait Implementations
sourceimpl Clone for OptionCode
impl Clone for OptionCode
sourcefn clone(&self) -> OptionCode
fn clone(&self) -> OptionCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptionCode
impl Debug for OptionCode
sourceimpl Display for OptionCode
impl Display for OptionCode
sourceimpl PartialEq<OptionCode> for OptionCode
impl PartialEq<OptionCode> for OptionCode
sourcefn eq(&self, other: &OptionCode) -> bool
fn eq(&self, other: &OptionCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OptionCode) -> bool
fn ne(&self, other: &OptionCode) -> bool
This method tests for !=
.
impl Copy for OptionCode
impl Eq for OptionCode
impl StructuralEq for OptionCode
impl StructuralPartialEq for OptionCode
Auto Trait Implementations
impl RefUnwindSafe for OptionCode
impl Send for OptionCode
impl Sync for OptionCode
impl Unpin for OptionCode
impl UnwindSafe for OptionCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more