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>
Source§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])
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
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