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: TcpOptionsBuilder<'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: TcpOptionsBuilder<'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 UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more