pub enum TcpOption<'a> {
EndOfList,
NoOperation,
MaxSegmentSize(u16),
WindowScale(u8),
SackPermitted,
SackRange([Option<(u32, u32)>; 3]),
Unknown {
kind: u8,
data: &'a [u8],
},
}
Expand description
A representation of a single TCP option.
Variants§
EndOfList
NoOperation
MaxSegmentSize(u16)
WindowScale(u8)
SackPermitted
SackRange([Option<(u32, u32)>; 3])
Unknown
Implementations§
Trait Implementations§
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