#[repr(C, packed)]pub struct udp_hdr_t {
pub src_port: network_uint16_t,
pub dst_port: network_uint16_t,
pub length: network_uint16_t,
pub checksum: network_uint16_t,
}
Expand description
@brief UDP header
Fields§
§src_port: network_uint16_t
< source port
dst_port: network_uint16_t
< destination port
length: network_uint16_t
< payload length (including the header)
checksum: network_uint16_t
< checksum
Trait Implementations§
impl Copy for udp_hdr_t
Auto Trait Implementations§
impl RefUnwindSafe for udp_hdr_t
impl Send for udp_hdr_t
impl Sync for udp_hdr_t
impl Unpin for udp_hdr_t
impl UnwindSafe for udp_hdr_t
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