Struct cross_socket::packet::tcp::TcpOption
source · pub struct TcpOption {
pub kind: TcpOptionKind,
pub data: Vec<u8>,
}Expand description
TCP Option
Fields§
§kind: TcpOptionKindTCP 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§
source§impl PartialEq for TcpOption
impl PartialEq for TcpOption
impl StructuralPartialEq for TcpOption
Auto Trait Implementations§
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