#[repr(C, packed(1))]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 Freeze for udp_hdr_t
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes