pub struct UdpPacket {
pub source: u16,
pub destination: u16,
pub length: u16,
pub checksum: u16,
pub payload: Vec<u8>,
}
Expand description
Represents the UDP packet.
Fields§
§source: u16
Source Port
destination: u16
Destination Port
length: u16
Length
checksum: u16
Checksum
payload: Vec<u8>
Payload
Implementations§
Trait Implementations§
impl StructuralPartialEq for UdpPacket
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