pub struct EthernetFrame<'a> {
pub dst_mac: MacAddress,
pub src_mac: MacAddress,
pub ethertype: u16,
pub payload: &'a [u8],
}Expand description
Parsed Ethernet frame
Fields§
§dst_mac: MacAddressDestination MAC address
src_mac: MacAddressSource MAC address
ethertype: u16EtherType field
payload: &'a [u8]Payload (reference to data after the header)
Trait Implementations§
Source§impl<'a> Clone for EthernetFrame<'a>
impl<'a> Clone for EthernetFrame<'a>
Source§fn clone(&self) -> EthernetFrame<'a>
fn clone(&self) -> EthernetFrame<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for EthernetFrame<'a>
impl<'a> RefUnwindSafe for EthernetFrame<'a>
impl<'a> Send for EthernetFrame<'a>
impl<'a> Sync for EthernetFrame<'a>
impl<'a> Unpin for EthernetFrame<'a>
impl<'a> UnwindSafe for EthernetFrame<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)