Struct pcap_parser::pcapng::OptionCode
source · [−]pub struct OptionCode(pub u16);Tuple Fields
0: u16Implementations
sourceimpl OptionCode
impl OptionCode
pub const EndOfOpt: OptionCode
pub const Comment: OptionCode
pub const ShbHardware: OptionCode
pub const ShbOs: OptionCode
pub const ShbUserAppl: OptionCode
pub const IfTsresol: OptionCode
pub const IfTsoffset: OptionCode
pub const Custom2988: OptionCode
pub const Custom2989: OptionCode
pub const Custom19372: OptionCode
pub const Custom19373: OptionCode
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