Enum packet_formats::ipv4::options::Ipv4OptionData
source · pub enum Ipv4OptionData<'a> {
RouterAlert {
data: u16,
},
Unrecognized {
kind: u8,
len: u8,
data: &'a [u8],
},
}
Expand description
The data associated with an IPv4 header option.
Ipv4OptionData
represents the variable-length data field of an IPv4 header
option.
Variants§
RouterAlert
Used to tell routers to inspect the packet.
Used by IGMP host messages per RFC 2236 section 2.
Unrecognized
An unrecognized IPv4 option.
Trait Implementations§
source§impl<'a> Clone for Ipv4OptionData<'a>
impl<'a> Clone for Ipv4OptionData<'a>
source§fn clone(&self) -> Ipv4OptionData<'a>
fn clone(&self) -> Ipv4OptionData<'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 Ipv4OptionData<'a>
impl<'a> Debug for Ipv4OptionData<'a>
source§impl<'a> PartialEq for Ipv4OptionData<'a>
impl<'a> PartialEq for Ipv4OptionData<'a>
source§fn eq(&self, other: &Ipv4OptionData<'a>) -> bool
fn eq(&self, other: &Ipv4OptionData<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for Ipv4OptionData<'a>
impl<'a> StructuralPartialEq for Ipv4OptionData<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ipv4OptionData<'a>
impl<'a> RefUnwindSafe for Ipv4OptionData<'a>
impl<'a> Send for Ipv4OptionData<'a>
impl<'a> Sync for Ipv4OptionData<'a>
impl<'a> Unpin for Ipv4OptionData<'a>
impl<'a> UnwindSafe for Ipv4OptionData<'a>
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