pub enum MacsecPType {
Unmodified(EtherType),
Modified,
Encrypted,
EncryptedUnmodified,
}Expand description
Encryption & modification state of the payload of a mac sec packet including the next ether type if the payload is unencrypted & unmodified.
Variants§
Unmodified(EtherType)
Unencrypted & unmodified (!tci.c && !tci.e) containing
the ether type of the after the mac sec.
Modified
Unencrypted but modified payload (tci.c && !tci.e).
Encrypted
Encrypted and modified payload (tci.c && tci.e).
EncryptedUnmodified
Encrypted and unmodified payload (tci.c && !tci.e).
This is not normal behavior.
Normally if the “encryption” flag should always be set together with the modification flag.
Trait Implementations§
Source§impl Clone for MacsecPType
impl Clone for MacsecPType
Source§fn clone(&self) -> MacsecPType
fn clone(&self) -> MacsecPType
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 Debug for MacsecPType
impl Debug for MacsecPType
Source§impl Hash for MacsecPType
impl Hash for MacsecPType
Source§impl Ord for MacsecPType
impl Ord for MacsecPType
Source§fn cmp(&self, other: &MacsecPType) -> Ordering
fn cmp(&self, other: &MacsecPType) -> 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 PartialEq for MacsecPType
impl PartialEq for MacsecPType
Source§impl PartialOrd for MacsecPType
impl PartialOrd for MacsecPType
impl Copy for MacsecPType
impl Eq for MacsecPType
impl StructuralPartialEq for MacsecPType
Auto Trait Implementations§
impl Freeze for MacsecPType
impl RefUnwindSafe for MacsecPType
impl Send for MacsecPType
impl Sync for MacsecPType
impl Unpin for MacsecPType
impl UnwindSafe for MacsecPType
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