pub struct UdpRecvMeta {
pub bytes_read: usize,
pub source_addr: SocketAddr,
pub destination_addr: Option<IpAddr>,
pub interface_index: Option<u32>,
}Expand description
Metadata returned from recv_msg.
Fields§
§bytes_read: usizeNumber of bytes received into the data buffer.
source_addr: SocketAddrSource address of the datagram.
destination_addr: Option<IpAddr>Destination address that received the datagram, if provided by ancillary data.
interface_index: Option<u32>Interface index on which the datagram was received, if provided.
Trait Implementations§
Source§impl Clone for UdpRecvMeta
impl Clone for UdpRecvMeta
Source§fn clone(&self) -> UdpRecvMeta
fn clone(&self) -> UdpRecvMeta
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 UdpRecvMeta
impl Debug for UdpRecvMeta
Source§impl PartialEq for UdpRecvMeta
impl PartialEq for UdpRecvMeta
impl Eq for UdpRecvMeta
impl StructuralPartialEq for UdpRecvMeta
Auto Trait Implementations§
impl Freeze for UdpRecvMeta
impl RefUnwindSafe for UdpRecvMeta
impl Send for UdpRecvMeta
impl Sync for UdpRecvMeta
impl Unpin for UdpRecvMeta
impl UnsafeUnpin for UdpRecvMeta
impl UnwindSafe for UdpRecvMeta
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