pub struct Incoming {
pub peer_addr: SocketAddr,
pub local_addr: SocketAddr,
pub rx_time: Option<SystemTime>,
pub buf: PooledBuf,
pub gro: Option<u16>,
}
Expand description
A received network packet with additional metadata.
Fields§
§peer_addr: SocketAddr
The address that sent the inbound packet.
local_addr: SocketAddr
The 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: PooledBuf
The packet’s contents.
gro: Option<u16>
If set, then buf
is a GRO buffer containing multiple packets.
Each individual packet has a size of gso
(except for the last one).
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