#[repr(C)]pub struct EthernetHeader {
dest_mac: EthernetAddr,
src_mac: EthernetAddr,
ethertype: [u8; 2],
}
Fields
dest_mac: EthernetAddr
src_mac: EthernetAddr
ethertype: [u8; 2]
Implementations
sourceimpl EthernetHeader
impl EthernetHeader
Trait Implementations
sourceimpl Clone for EthernetHeader
impl Clone for EthernetHeader
sourcefn clone(&self) -> EthernetHeader
fn clone(&self) -> EthernetHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EthernetHeader
impl Debug for EthernetHeader
sourceimpl Default for EthernetHeader
impl Default for EthernetHeader
sourcefn default() -> EthernetHeader
fn default() -> EthernetHeader
Returns the “default value” for a type. Read more
sourceimpl Header for EthernetHeader
impl Header for EthernetHeader
impl Copy for EthernetHeader
Auto Trait Implementations
impl ObjSafe for EthernetHeader
impl RefUnwindSafe for EthernetHeader
impl Send for EthernetHeader
impl Sync for EthernetHeader
impl Unpin for EthernetHeader
impl UnwindSafe for EthernetHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more