Struct xenet_packet::udp::Udp
source · pub struct Udp {
pub source: u16be,
pub destination: u16be,
pub length: u16be,
pub checksum: u16be,
pub payload: Vec<u8>,
}
Expand description
Represents a UDP Packet.
Fields§
§source: u16be
§destination: u16be
§length: u16be
§checksum: u16be
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
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