pub struct TcpHeader {
pub ip: Ipv4Header,
pub flags: TcpFlags,
pub src_port: u16,
pub dst_port: u16,
pub seq: u32,
pub ack: u32,
pub window_size: u16,
pub selective_acks: Option<SmallArrayBackedSlice<4, (u32, u32)>>,
pub window_scale: Option<u8>,
pub timestamp: Option<u32>,
pub timestamp_echo: Option<u32>,
}
Fields§
§ip: Ipv4Header
§flags: TcpFlags
§src_port: u16
§dst_port: u16
§seq: u32
§ack: u32
§window_size: u16
§selective_acks: Option<SmallArrayBackedSlice<4, (u32, u32)>>
§window_scale: Option<u8>
§timestamp: Option<u32>
§timestamp_echo: Option<u32>
Implementations§
source§impl TcpHeader
impl TcpHeader
pub fn src(&self) -> SocketAddrV4
pub fn dst(&self) -> SocketAddrV4
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpHeader
impl RefUnwindSafe for TcpHeader
impl Send for TcpHeader
impl Sync for TcpHeader
impl Unpin for TcpHeader
impl UnwindSafe for TcpHeader
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§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
)