Struct packet_formats::ipv4::options::Ipv4Option
source · pub struct Ipv4Option<'a> {
pub copied: bool,
pub data: Ipv4OptionData<'a>,
}
Expand description
Fields§
§copied: bool
Whether this option needs to be copied into all fragments of a fragmented packet.
data: Ipv4OptionData<'a>
IPv4 option data.
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>
§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>
source§fn eq(&self, other: &Ipv4Option<'a>) -> bool
fn eq(&self, other: &Ipv4Option<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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