pub enum Ipv4Option<'a> {
RouterAlert {
data: u16,
},
Unrecognized {
kind: u8,
data: &'a [u8],
},
}
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.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for Ipv4Option<'a>
impl<'a> Clone for Ipv4Option<'a>
Source§fn clone(&self) -> Ipv4Option<'a>
fn clone(&self) -> Ipv4Option<'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 Ipv4Option<'a>
impl<'a> Debug for Ipv4Option<'a>
Source§impl<'a> OptionBuilder for Ipv4Option<'a>
impl<'a> OptionBuilder for Ipv4Option<'a>
Source§type Layout = Ipv4OptionsImpl
type Layout = Ipv4OptionsImpl
Information about the option’s layout.
Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Returns the serialized length, in bytes, of
self
. Read moreSource§fn option_kind(&self) -> u8
fn option_kind(&self) -> u8
Returns the wire value for this option kind.
Source§fn serialize_into(&self, buffer: &mut [u8])
fn serialize_into(&self, buffer: &mut [u8])
Source§impl<'a> PartialEq for Ipv4Option<'a>
impl<'a> PartialEq for Ipv4Option<'a>
impl<'a> Eq for Ipv4Option<'a>
impl<'a> StructuralPartialEq for Ipv4Option<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ipv4Option<'a>
impl<'a> RefUnwindSafe for Ipv4Option<'a>
impl<'a> Send for Ipv4Option<'a>
impl<'a> Sync for Ipv4Option<'a>
impl<'a> Unpin for Ipv4Option<'a>
impl<'a> UnwindSafe for Ipv4Option<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<O> RecordBuilder for Owhere
O: OptionBuilder,
impl<O> RecordBuilder for Owhere
O: OptionBuilder,
§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Provides the serialized length of a record. Read more
§fn serialize_into(&self, data: &mut [u8])
fn serialize_into(&self, data: &mut [u8])
Serializes
self
into a buffer. Read more