pub struct RecvMeta {
pub peer: SocketAddr,
pub len: usize,
pub segment_size: usize,
pub ecn: u8,
pub local_ip: Option<IpAddr>,
pub truncated: bool,
}Expand description
What the OS reported about one received datagram (or one GRO batch of datagrams).
Fields§
§peer: SocketAddrThe sender.
len: usizeBytes received into the buffer.
segment_size: usizeWith GRO, the buffer holds several datagrams of this size (the last may be shorter).
Equal to len when the buffer holds one datagram.
ecn: u8The ECN bits (0..=3) when ECN reporting is on, else 0.
local_ip: Option<IpAddr>The local address the datagram was sent to, when packet info is on.
truncated: boolThe datagram did not fit the buffer and was cut.
Trait Implementations§
impl Copy for RecvMeta
impl Eq for RecvMeta
impl StructuralPartialEq for RecvMeta
Auto Trait Implementations§
impl Forget for RecvMeta
impl Freeze for RecvMeta
impl Move for RecvMeta
impl RefUnwindSafe for RecvMeta
impl Send for RecvMeta
impl Sync for RecvMeta
impl Unpin for RecvMeta
impl UnsafeUnpin for RecvMeta
impl UnwindSafe for RecvMeta
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