pub struct TcpEndpointState {
pub next_expected_seq: u32,
pub last_ack: u32,
pub window_size: u16,
pub initial_seq: Option<u32>,
}Expand description
Per-endpoint sequence tracking state.
Fields§
§next_expected_seq: u32Next expected sequence number from this endpoint.
last_ack: u32Last acknowledged sequence number from this endpoint.
window_size: u16Advertised receive window size.
initial_seq: Option<u32>Initial sequence number (set on SYN).
Implementations§
Trait Implementations§
Source§impl Clone for TcpEndpointState
impl Clone for TcpEndpointState
Source§fn clone(&self) -> TcpEndpointState
fn clone(&self) -> TcpEndpointState
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 TcpEndpointState
impl Debug for TcpEndpointState
Auto Trait Implementations§
impl Freeze for TcpEndpointState
impl RefUnwindSafe for TcpEndpointState
impl Send for TcpEndpointState
impl Sync for TcpEndpointState
impl Unpin for TcpEndpointState
impl UnsafeUnpin for TcpEndpointState
impl UnwindSafe for TcpEndpointState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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