etherparse 0.19.0

A library for parsing & writing a bunch of packet based protocols (EthernetII, IPv4, IPv6, UDP, TCP ...).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::*;

#[derive(Clone, Debug, Eq, PartialEq, Hash, PartialOrd, Ord)]
pub enum LaxMacsecPayloadSlice<'a> {
    /// Unencrypted unmodified ether payload.
    Unmodified(LaxEtherPayloadSlice<'a>),

    /// Modified payload (either by encryption or other algorithm).
    Modified { incomplete: bool, payload: &'a [u8] },
}