pub struct LaxEtherPayloadSlice<'a> {
pub incomplete: bool,
pub ether_type: EtherType,
pub len_source: LenSource,
pub payload: &'a [u8],
}Expand description
Laxly identified payload of an link layer packet (potentially incomplete).
To check if the payload is complete check the incomplete field.
Fields§
§incomplete: boolTrue if the length field in the link header (e.g. MACsec short length) indicates more data should be present but it was not (aka the packet data is cut off).
ether_type: EtherTypeIdentifying content of the payload.
len_source: LenSourceLength field that was used to determine the length of the payload (e.g. MACsec “short length” field).
payload: &'a [u8]Payload
Trait Implementations§
Source§impl<'a> Clone for LaxEtherPayloadSlice<'a>
impl<'a> Clone for LaxEtherPayloadSlice<'a>
Source§fn clone(&self) -> LaxEtherPayloadSlice<'a>
fn clone(&self) -> LaxEtherPayloadSlice<'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 LaxEtherPayloadSlice<'a>
impl<'a> Debug for LaxEtherPayloadSlice<'a>
Source§impl<'a> Hash for LaxEtherPayloadSlice<'a>
impl<'a> Hash for LaxEtherPayloadSlice<'a>
Source§impl<'a> Ord for LaxEtherPayloadSlice<'a>
impl<'a> Ord for LaxEtherPayloadSlice<'a>
Source§fn cmp(&self, other: &LaxEtherPayloadSlice<'a>) -> Ordering
fn cmp(&self, other: &LaxEtherPayloadSlice<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for LaxEtherPayloadSlice<'a>
impl<'a> PartialEq for LaxEtherPayloadSlice<'a>
Source§impl<'a> PartialOrd for LaxEtherPayloadSlice<'a>
impl<'a> PartialOrd for LaxEtherPayloadSlice<'a>
impl<'a> Eq for LaxEtherPayloadSlice<'a>
impl<'a> StructuralPartialEq for LaxEtherPayloadSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for LaxEtherPayloadSlice<'a>
impl<'a> RefUnwindSafe for LaxEtherPayloadSlice<'a>
impl<'a> Send for LaxEtherPayloadSlice<'a>
impl<'a> Sync for LaxEtherPayloadSlice<'a>
impl<'a> Unpin for LaxEtherPayloadSlice<'a>
impl<'a> UnwindSafe for LaxEtherPayloadSlice<'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