Enum etherparse::LinkSlice
source · [−]pub enum LinkSlice<'a> {
Ethernet2(Ethernet2HeaderSlice<'a>),
}
Expand description
A slice containing the link layer header (currently only Ethernet II is supported).
Variants
Ethernet2(Ethernet2HeaderSlice<'a>)
A slice containing an Ethernet II header.
Implementations
sourceimpl<'a> LinkSlice<'a>
impl<'a> LinkSlice<'a>
sourcepub fn to_header(&self) -> Ethernet2Header
pub fn to_header(&self) -> Ethernet2Header
Convert the link slice to a header (currently just the ethernet2 header as this is the only value it can take).
Trait Implementations
impl<'a> Eq for LinkSlice<'a>
impl<'a> StructuralEq for LinkSlice<'a>
impl<'a> StructuralPartialEq for LinkSlice<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LinkSlice<'a>
impl<'a> Send for LinkSlice<'a>
impl<'a> Sync for LinkSlice<'a>
impl<'a> Unpin for LinkSlice<'a>
impl<'a> UnwindSafe for LinkSlice<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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