#[repr(C, packed(1))]pub struct rte_tcp_hdr {
pub src_port: u16,
pub dst_port: u16,
pub sent_seq: u32,
pub recv_ack: u32,
pub data_off: u8,
pub tcp_flags: u8,
pub rx_win: u16,
pub cksum: u16,
pub tcp_urp: u16,
}Expand description
TCP header
Fields§
§src_port: u16§dst_port: u16§sent_seq: u32§recv_ack: u32§data_off: u8§tcp_flags: u8§rx_win: u16§cksum: u16§tcp_urp: u16Trait Implementations§
Source§impl Clone for rte_tcp_hdr
impl Clone for rte_tcp_hdr
Source§fn clone(&self) -> rte_tcp_hdr
fn clone(&self) -> rte_tcp_hdr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for rte_tcp_hdr
impl Debug for rte_tcp_hdr
Source§impl Default for rte_tcp_hdr
impl Default for rte_tcp_hdr
Source§fn default() -> rte_tcp_hdr
fn default() -> rte_tcp_hdr
Returns the “default value” for a type. Read more
impl Copy for rte_tcp_hdr
Auto Trait Implementations§
impl Freeze for rte_tcp_hdr
impl RefUnwindSafe for rte_tcp_hdr
impl Send for rte_tcp_hdr
impl Sync for rte_tcp_hdr
impl Unpin for rte_tcp_hdr
impl UnsafeUnpin for rte_tcp_hdr
impl UnwindSafe for rte_tcp_hdr
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