pub struct UdpDatagram {
pub source_port: u16,
pub destination_port: u16,
pub data: Vec<u8>,
}Expand description
A received UDP datagram, addressed from peer_ip:source_port to the local
destination_port. UDP is connectionless, so there is no socket state
beyond the set of bound local ports.
Fields§
§source_port: u16§destination_port: u16§data: Vec<u8>Trait Implementations§
Source§impl Clone for UdpDatagram
impl Clone for UdpDatagram
Auto Trait Implementations§
impl Forget for UdpDatagram
impl Freeze for UdpDatagram
impl Move for UdpDatagram
impl RefUnwindSafe for UdpDatagram
impl Send for UdpDatagram
impl Sync for UdpDatagram
impl Unpin for UdpDatagram
impl UnsafeUnpin for UdpDatagram
impl UnwindSafe for UdpDatagram
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