Struct etherparse::Ethernet2HeaderSlice [−][src]
pub struct Ethernet2HeaderSlice<'a> { /* fields omitted */ }
Expand description
A slice containing an ethernet 2 header of a network package.
Implementations
Creates a ethernet slice from an other slice.
Returns the slice containing the ethernet 2 header
Read the destination mac address
Read the ether_type field of the header (in system native byte order).
Decode all the fields and copy the results to a Ipv4Header struct
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Ethernet2HeaderSlice<'a>
impl<'a> Send for Ethernet2HeaderSlice<'a>
impl<'a> Sync for Ethernet2HeaderSlice<'a>
impl<'a> Unpin for Ethernet2HeaderSlice<'a>
impl<'a> UnwindSafe for Ethernet2HeaderSlice<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more