#[repr(C, packed)]pub struct TcpHeader { /* private fields */ }
Expand description
TCP header: https://tools.ietf.org/html/rfc793#section-3.1
Implementations§
source§impl TcpHeader
impl TcpHeader
sourcepub fn header_len(&self) -> u8
pub fn header_len(&self) -> u8
TCP header length in bytes (including TCP options)
sourcepub fn window_size(&self) -> u16
pub fn window_size(&self) -> u16
TCP window size
sourcepub fn urgent_ptr(&self) -> u16
pub fn urgent_ptr(&self) -> u16
TCP urgent pointer
Auto Trait Implementations§
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