pub enum TcpOption {
}Expand description
A parsed TCP option.
Variants§
Eol
End of Option List (kind 0)
Nop
No Operation / Padding (kind 1)
Mss(u16)
Maximum Segment Size (kind 2)
WScale(u8)
Window Scale (kind 3)
SackOk
SACK Permitted (kind 4)
Sack(Vec<TcpSackBlock>)
Selective Acknowledgment (kind 5)
Timestamp(TcpTimestamp)
Timestamps (kind 8)
AltChkSum
Alternate Checksum Request (kind 14)
AltChkSumOpt
Alternate Checksum Data (kind 15)
Md5([u8; 16])
MD5 Signature (kind 19)
Mood(String)
Mood (kind 25) - RFC 5841
Uto(u16)
User Timeout Option (kind 28)
Ao(TcpAoValue)
Authentication Option (kind 29)
Tfo
TCP Fast Open (kind 34)
Fields
TFO cookie (optional)
Unknown
Unknown or unimplemented option
Implementations§
Source§impl TcpOption
impl TcpOption
Sourcepub fn kind(&self) -> TcpOptionKind
pub fn kind(&self) -> TcpOptionKind
Get the option kind.
Sourcepub fn sack(blocks: Vec<TcpSackBlock>) -> Self
pub fn sack(blocks: Vec<TcpSackBlock>) -> Self
Create a SACK option.
Trait Implementations§
impl Eq for TcpOption
impl StructuralPartialEq for TcpOption
Auto Trait Implementations§
impl Freeze for TcpOption
impl RefUnwindSafe for TcpOption
impl Send for TcpOption
impl Sync for TcpOption
impl Unpin for TcpOption
impl UnsafeUnpin for TcpOption
impl UnwindSafe for TcpOption
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more