pub struct TcpSegmentMetadata {
pub src_port: u16,
pub dst_port: u16,
pub seq_num: u32,
pub ack_num: Option<u32>,
pub flags: u16,
pub psh: bool,
pub rst: bool,
pub syn: bool,
pub fin: bool,
pub window_size: u16,
pub options: &'static [TcpOption<'static>],
}
Expand description
Metadata of a TCP segment.
Fields§
§src_port: u16
§dst_port: u16
§seq_num: u32
§ack_num: Option<u32>
§flags: u16
§psh: bool
§rst: bool
§syn: bool
§fin: bool
§window_size: u16
§options: &'static [TcpOption<'static>]
Auto Trait Implementations§
impl Freeze for TcpSegmentMetadata
impl RefUnwindSafe for TcpSegmentMetadata
impl Send for TcpSegmentMetadata
impl Sync for TcpSegmentMetadata
impl Unpin for TcpSegmentMetadata
impl UnwindSafe for TcpSegmentMetadata
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