#[repr(C, packed(1))]pub struct rte_udp_hdr {
pub src_port: u16,
pub dst_port: u16,
pub dgram_len: u16,
pub dgram_cksum: u16,
}Expand description
UDP header
Fields§
§src_port: u16§dst_port: u16§dgram_len: u16§dgram_cksum: u16Trait Implementations§
Source§impl Clone for rte_udp_hdr
impl Clone for rte_udp_hdr
Source§fn clone(&self) -> rte_udp_hdr
fn clone(&self) -> rte_udp_hdr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for rte_udp_hdr
impl Debug for rte_udp_hdr
Source§impl Default for rte_udp_hdr
impl Default for rte_udp_hdr
Source§fn default() -> rte_udp_hdr
fn default() -> rte_udp_hdr
Returns the “default value” for a type. Read more
impl Copy for rte_udp_hdr
Auto Trait Implementations§
impl Freeze for rte_udp_hdr
impl RefUnwindSafe for rte_udp_hdr
impl Send for rte_udp_hdr
impl Sync for rte_udp_hdr
impl Unpin for rte_udp_hdr
impl UnsafeUnpin for rte_udp_hdr
impl UnwindSafe for rte_udp_hdr
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