Struct packet_formats::tcp::TcpFlowAndSeqNum
source · #[repr(C)]pub struct TcpFlowAndSeqNum { /* private fields */ }
Expand description
Contains the TCP flow info and its sequence number.
This is useful for TCP endpoints processing ingress ICMP messages so that it can deliver the ICMP message to the right socket and also perform checks against the sequence number to make sure it corresponds to an in-flight segment.
Implementations§
Trait Implementations§
source§impl Debug for TcpFlowAndSeqNum
impl Debug for TcpFlowAndSeqNum
source§impl Default for TcpFlowAndSeqNum
impl Default for TcpFlowAndSeqNum
source§fn default() -> TcpFlowAndSeqNum
fn default() -> TcpFlowAndSeqNum
Returns the “default value” for a type. Read more
source§impl FromBytes for TcpFlowAndSeqNumwhere
TcpFlowHeader: FromBytes,
U32: FromBytes,
impl FromBytes for TcpFlowAndSeqNumwhere
TcpFlowHeader: FromBytes,
U32: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for TcpFlowAndSeqNumwhere
TcpFlowHeader: FromZeros,
U32: FromZeros,
impl FromZeros for TcpFlowAndSeqNumwhere
TcpFlowHeader: FromZeros,
U32: FromZeros,
source§impl IntoBytes for TcpFlowAndSeqNumwhere
TcpFlowHeader: IntoBytes,
U32: IntoBytes,
HasPadding<TcpFlowAndSeqNum, { _ }>: ShouldBe<false>,
impl IntoBytes for TcpFlowAndSeqNumwhere
TcpFlowHeader: IntoBytes,
U32: IntoBytes,
HasPadding<TcpFlowAndSeqNum, { _ }>: ShouldBe<false>,
source§impl PartialEq for TcpFlowAndSeqNum
impl PartialEq for TcpFlowAndSeqNum
source§fn eq(&self, other: &TcpFlowAndSeqNum) -> bool
fn eq(&self, other: &TcpFlowAndSeqNum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TcpFlowAndSeqNum
impl Unaligned for TcpFlowAndSeqNumwhere
TcpFlowHeader: Unaligned,
U32: Unaligned,
Auto Trait Implementations§
impl Freeze for TcpFlowAndSeqNum
impl RefUnwindSafe for TcpFlowAndSeqNum
impl Send for TcpFlowAndSeqNum
impl Sync for TcpFlowAndSeqNum
impl Unpin for TcpFlowAndSeqNum
impl UnwindSafe for TcpFlowAndSeqNum
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