pub struct LaxMacsecSlice<'a> {
pub header: MacsecHeaderSlice<'a>,
pub payload: LaxMacsecPayloadSlice<'a>,
}Expand description
MACsec packet (SecTag header & payload).
Fields§
§header: MacsecHeaderSlice<'a>§payload: LaxMacsecPayloadSlice<'a>Implementations§
Source§impl<'a> LaxMacsecSlice<'a>
impl<'a> LaxMacsecSlice<'a>
pub fn from_slice( slice: &'a [u8], ) -> Result<LaxMacsecSlice<'a>, HeaderSliceError>
Sourcepub fn ether_payload(&self) -> Option<LaxEtherPayloadSlice<'a>>
pub fn ether_payload(&self) -> Option<LaxEtherPayloadSlice<'a>>
Get the ether payload if the macsec packet is unencrypted & unmodified.
Sourcepub fn next_ether_type(&self) -> Option<EtherType>
pub fn next_ether_type(&self) -> Option<EtherType>
Get the ether type of the payload if the macsec packet is unencrypted & unmodified.
Trait Implementations§
Source§impl<'a> Clone for LaxMacsecSlice<'a>
impl<'a> Clone for LaxMacsecSlice<'a>
Source§fn clone(&self) -> LaxMacsecSlice<'a>
fn clone(&self) -> LaxMacsecSlice<'a>
Returns a duplicate 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<'a> Debug for LaxMacsecSlice<'a>
impl<'a> Debug for LaxMacsecSlice<'a>
Source§impl<'a> PartialEq for LaxMacsecSlice<'a>
impl<'a> PartialEq for LaxMacsecSlice<'a>
impl<'a> Eq for LaxMacsecSlice<'a>
impl<'a> StructuralPartialEq for LaxMacsecSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for LaxMacsecSlice<'a>
impl<'a> RefUnwindSafe for LaxMacsecSlice<'a>
impl<'a> Send for LaxMacsecSlice<'a>
impl<'a> Sync for LaxMacsecSlice<'a>
impl<'a> Unpin for LaxMacsecSlice<'a>
impl<'a> UnwindSafe for LaxMacsecSlice<'a>
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