pub struct ParseOption {
pub from_ip_packet: bool,
pub offset: usize,
}
Expand description
Parse options.
Fields§
§from_ip_packet: bool
Parse from IP packet.
offset: usize
Offset of the packet.
If from_ip_packet
is true, this value is the offset of the IP packet.
Implementations§
Source§impl ParseOption
impl ParseOption
Sourcepub fn new(from_ip_packet: bool, offset: usize) -> ParseOption
pub fn new(from_ip_packet: bool, offset: usize) -> ParseOption
Construct a new ParseOption.
Trait Implementations§
Source§impl Clone for ParseOption
impl Clone for ParseOption
Source§fn clone(&self) -> ParseOption
fn clone(&self) -> ParseOption
Returns a duplicate 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 Debug for ParseOption
impl Debug for ParseOption
Source§impl Default for ParseOption
impl Default for ParseOption
Source§fn default() -> ParseOption
fn default() -> ParseOption
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParseOption
impl PartialEq for ParseOption
impl Eq for ParseOption
impl StructuralPartialEq for ParseOption
Auto Trait Implementations§
impl Freeze for ParseOption
impl RefUnwindSafe for ParseOption
impl Send for ParseOption
impl Sync for ParseOption
impl Unpin for ParseOption
impl UnwindSafe for ParseOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more