#[repr(C, packed(1))]pub struct ethernet_hdr_t {
pub dst: [u8; 6],
pub src: [u8; 6],
pub type_: network_uint16_t,
}
Expand description
@brief Ethernet header
Fields§
§dst: [u8; 6]
< destination address
src: [u8; 6]
< source address
type_: network_uint16_t
< ether type (see @ref net_ethertype)
Trait Implementations§
Source§impl Clone for ethernet_hdr_t
impl Clone for ethernet_hdr_t
Source§fn clone(&self) -> ethernet_hdr_t
fn clone(&self) -> ethernet_hdr_t
Returns a copy 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 ethernet_hdr_t
impl Debug for ethernet_hdr_t
Source§impl Default for ethernet_hdr_t
impl Default for ethernet_hdr_t
impl Copy for ethernet_hdr_t
Auto Trait Implementations§
impl Freeze for ethernet_hdr_t
impl RefUnwindSafe for ethernet_hdr_t
impl Send for ethernet_hdr_t
impl Sync for ethernet_hdr_t
impl Unpin for ethernet_hdr_t
impl UnwindSafe for ethernet_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: 14 bytes