pub struct DatagramInfo { /* private fields */ }Expand description
Identity information for one UDP datagram.
Implementations§
Source§impl DatagramInfo
impl DatagramInfo
Sourcepub fn peer_addr(&self) -> SocketAddr
pub fn peer_addr(&self) -> SocketAddr
Peer address for the current datagram.
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Local socket address.
Trait Implementations§
Source§impl Clone for DatagramInfo
impl Clone for DatagramInfo
Source§fn clone(&self) -> DatagramInfo
fn clone(&self) -> DatagramInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatagramInfo
Auto Trait Implementations§
impl Freeze for DatagramInfo
impl RefUnwindSafe for DatagramInfo
impl Send for DatagramInfo
impl Sync for DatagramInfo
impl Unpin for DatagramInfo
impl UnsafeUnpin for DatagramInfo
impl UnwindSafe for DatagramInfo
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