Enum packet_formats::tcp::options::TcpOption
source · pub enum TcpOption<'a> {
Mss(u16),
WindowScale(u8),
SackPermitted,
Sack(&'a [TcpSackBlock]),
Timestamp {
ts_val: u32,
ts_echo_reply: u32,
},
}
Expand description
Variants§
Mss(u16)
A Maximum Segment Size (MSS) option.
WindowScale(u8)
A window scale option.
SackPermitted
A selective ACK permitted option.
Sack(&'a [TcpSackBlock])
A selective ACK option.
A variable-length number of selective ACK blocks. The length is in the range [0, 4].
Timestamp
A timestamp option.
Trait Implementations§
source§impl<'a> OptionBuilder for TcpOption<'a>
impl<'a> OptionBuilder for TcpOption<'a>
§type Layout = TcpOptionsImpl
type Layout = TcpOptionsImpl
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 TcpOption<'a>
impl<'a> PartialEq for TcpOption<'a>
impl<'a> Copy for TcpOption<'a>
impl<'a> Eq for TcpOption<'a>
impl<'a> StructuralPartialEq for TcpOption<'a>
Auto Trait Implementations§
impl<'a> Freeze for TcpOption<'a>
impl<'a> RefUnwindSafe for TcpOption<'a>
impl<'a> Send for TcpOption<'a>
impl<'a> Sync for TcpOption<'a>
impl<'a> Unpin for TcpOption<'a>
impl<'a> UnwindSafe for TcpOption<'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