pub struct Incoming {
pub peer_addr: SocketAddr,
pub local_addr: SocketAddr,
pub rx_time: Option<SystemTime>,
pub buf: PooledBuf,
pub gro: Option<i32>,
pub so_mark_data: Option<[u8; 4]>,
}Expand description
A received network packet with additional metadata.
Fields§
§peer_addr: SocketAddrThe address that sent the inbound packet.
local_addr: SocketAddrThe address on which we received the inbound packet.
rx_time: Option<SystemTime>The receive timestamp of the packet.
Used for the perf-quic-listener-metrics feature.
buf: PooledBufThe packet’s contents.
gro: Option<i32>If set, then buf is a GRO buffer containing multiple packets.
Each individual packet has a size of gso (except for the last one).
so_mark_data: Option<[u8; 4]>SO_MARK control message value received from the socket.
This will always be None after the connection has been spawned as
the message is take()d before spawning.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Incoming
impl RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl UnwindSafe for Incoming
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