pub struct RecvMeta {
pub source: SocketAddr,
pub len: usize,
pub ecn: Option<EcnCodepoint>,
pub dst_ip: Option<IpAddr>,
}
Expand description
An incoming packet
Fields§
§source: SocketAddr
The socket this datagram was sent from.
len: usize
Length of the payload of the packet.
ecn: Option<EcnCodepoint>
Explicit congestion notification bits set on the packet.
dst_ip: Option<IpAddr>
Optional destination IP address of the datagram.
Trait Implementations§
impl Copy for RecvMeta
Auto Trait Implementations§
impl Freeze for RecvMeta
impl RefUnwindSafe for RecvMeta
impl Send for RecvMeta
impl Sync for RecvMeta
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)