Enum etherparse::TcpOptionElement [−][src]
pub enum TcpOptionElement { Nop, MaximumSegmentSize(u16), WindowScale(u8), SelectiveAcknowledgementPermitted, SelectiveAcknowledgement((u32, u32), [Option<(u32, u32)>; 3]), Timestamp(u32, u32), }
Different kinds of options that can be present in the options part of a tcp header.
Variants
Nop
MaximumSegmentSize(u16)
WindowScale(u8)
SelectiveAcknowledgementPermitted
SelectiveAcknowledgement((u32, u32), [Option<(u32, u32)>; 3])
Timestamp(u32, u32)
Timestamp & echo (first number is the sender timestamp, the second the echo timestamp)
Trait Implementations
impl Clone for TcpOptionElement
[src]
impl Clone for TcpOptionElement
fn clone(&self) -> TcpOptionElement
[src]
fn clone(&self) -> TcpOptionElement
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TcpOptionElement
[src]
impl Debug for TcpOptionElement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for TcpOptionElement
[src]
impl Eq for TcpOptionElement
impl PartialEq for TcpOptionElement
[src]
impl PartialEq for TcpOptionElement
fn eq(&self, other: &TcpOptionElement) -> bool
[src]
fn eq(&self, other: &TcpOptionElement) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TcpOptionElement) -> bool
[src]
fn ne(&self, other: &TcpOptionElement) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for TcpOptionElement
impl Send for TcpOptionElement
impl Sync for TcpOptionElement
impl Sync for TcpOptionElement