pub struct TcpOption {
pub kind: TcpOptionKind,
pub data: Vec<u8>,
}
Expand description
TCP Option
Fields§
§kind: TcpOptionKind
TCP Option Kind
data: Vec<u8>
TCP Option Data
Implementations§
Source§impl TcpOption
impl TcpOption
Sourcepub fn get_timestamp(&self) -> (u32, u32)
pub fn get_timestamp(&self) -> (u32, u32)
Get the timestamp of the TCP option
Sourcepub fn get_wscale(&self) -> u8
pub fn get_wscale(&self) -> u8
Get the WSCALE of the TCP option
Sourcepub fn selective_ack(acks: &[u32]) -> Self
pub fn selective_ack(acks: &[u32]) -> Self
Selective Acknowledgement (SACK) TCP option
Trait Implementations§
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 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