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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)