Enum xenet_packet::tcp::TcpOptionKind
source · #[repr(u8)]pub enum TcpOptionKind {
EOL = 0,
NOP = 1,
MSS = 2,
WSCALE = 3,
SACK_PERMITTED = 4,
SACK = 5,
TIMESTAMPS = 8,
}
Expand description
Represents a TCP Option Kind. https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-1
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TcpOptionKind
impl Clone for TcpOptionKind
source§fn clone(&self) -> TcpOptionKind
fn clone(&self) -> TcpOptionKind
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 Debug for TcpOptionKind
impl Debug for TcpOptionKind
source§impl Hash for TcpOptionKind
impl Hash for TcpOptionKind
source§impl Ord for TcpOptionKind
impl Ord for TcpOptionKind
source§fn cmp(&self, other: &TcpOptionKind) -> Ordering
fn cmp(&self, other: &TcpOptionKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TcpOptionKind
impl PartialEq for TcpOptionKind
source§fn eq(&self, other: &TcpOptionKind) -> bool
fn eq(&self, other: &TcpOptionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TcpOptionKind
impl PartialOrd for TcpOptionKind
source§fn partial_cmp(&self, other: &TcpOptionKind) -> Option<Ordering>
fn partial_cmp(&self, other: &TcpOptionKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PrimitiveValues for TcpOptionKind
impl PrimitiveValues for TcpOptionKind
impl Copy for TcpOptionKind
impl Eq for TcpOptionKind
impl StructuralEq for TcpOptionKind
impl StructuralPartialEq for TcpOptionKind
Auto Trait Implementations§
impl RefUnwindSafe for TcpOptionKind
impl Send for TcpOptionKind
impl Sync for TcpOptionKind
impl Unpin for TcpOptionKind
impl UnwindSafe for TcpOptionKind
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