#[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§impl PartialOrd for TcpOptionKind
impl PartialOrd for TcpOptionKind
Source§impl PrimitiveValues for TcpOptionKind
impl PrimitiveValues for TcpOptionKind
impl Copy for TcpOptionKind
impl Eq for TcpOptionKind
impl StructuralPartialEq for TcpOptionKind
Auto Trait Implementations§
impl Freeze for TcpOptionKind
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