#[repr(C, packed(1))]pub struct rte_ether_hdr {
pub dst_addr: rte_ether_addr,
pub src_addr: rte_ether_addr,
pub ether_type: u16,
}Expand description
Ethernet header
Fields§
§dst_addr: rte_ether_addr§src_addr: rte_ether_addr§ether_type: u16Trait Implementations§
Source§impl Clone for rte_ether_hdr
impl Clone for rte_ether_hdr
Source§fn clone(&self) -> rte_ether_hdr
fn clone(&self) -> rte_ether_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_ether_hdr
impl Debug for rte_ether_hdr
Source§impl Default for rte_ether_hdr
impl Default for rte_ether_hdr
Source§fn default() -> rte_ether_hdr
fn default() -> rte_ether_hdr
Returns the “default value” for a type. Read more
impl Copy for rte_ether_hdr
Auto Trait Implementations§
impl Freeze for rte_ether_hdr
impl RefUnwindSafe for rte_ether_hdr
impl Send for rte_ether_hdr
impl Sync for rte_ether_hdr
impl Unpin for rte_ether_hdr
impl UnsafeUnpin for rte_ether_hdr
impl UnwindSafe for rte_ether_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