pub struct UdpPacket {
pub frag: u8,
pub address: Address,
pub data: Bytes,
}Expand description
§UDP Packet
+-----+------+------+----------+----------+----------+
| RSV | FRAG | ATYP | DST.ADDR | DST.PORT | DATA |
+-----+------+------+----------+----------+----------+
| 2 | 1 | 1 | Variable | 2 | Variable |
+-----+------+------+----------+----------+----------+Fields§
§frag: u8§address: Address§data: BytesImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UdpPacket
impl RefUnwindSafe for UdpPacket
impl Send for UdpPacket
impl Sync for UdpPacket
impl Unpin for UdpPacket
impl UnwindSafe for UdpPacket
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