pub struct Udp {
pub source: u16,
pub destination: u16,
pub length: u16,
pub checksum: u16,
pub payload: Vec<u8>,
}
Expand description
Represents a UDP Packet.
Fields§
§source: u16
§destination: u16
§length: u16
§checksum: u16
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Udp
impl RefUnwindSafe for Udp
impl Send for Udp
impl Sync for Udp
impl Unpin for Udp
impl UnwindSafe for Udp
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