#[non_exhaustive]pub enum SecurityMode {
Show 17 variants
NoEncryption,
ManufacturerSpecific,
DesIvZero,
DesIvNonZero,
SpecificUsage4,
AesCbc128IvNonZero,
Reserved6,
AesCbc128IvZero,
AesCtr128Cmac,
AesGcm128,
AesCcm128,
Reserved11,
Reserved12,
SpecificUsage13,
Reserved14,
SpecificUsage15,
ReservedHigher(u8),
}Expand description
Security Mode as defined in EN 13757-7:2018 Table 19
The Security mode defines the applied set of security mechanisms and is encoded in bits 12-8 (5 bits) of the Configuration Field.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoEncryption
ManufacturerSpecific
DesIvZero
DesIvNonZero
SpecificUsage4
AesCbc128IvNonZero
Reserved6
AesCbc128IvZero
AesCtr128Cmac
AesGcm128
AesCcm128
Reserved11
Reserved12
SpecificUsage13
Reserved14
SpecificUsage15
ReservedHigher(u8)
Implementations§
Trait Implementations§
Source§impl Clone for SecurityMode
impl Clone for SecurityMode
Source§fn clone(&self) -> SecurityMode
fn clone(&self) -> SecurityMode
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 SecurityMode
impl Debug for SecurityMode
Source§impl Hash for SecurityMode
impl Hash for SecurityMode
Source§impl PartialEq for SecurityMode
impl PartialEq for SecurityMode
impl Copy for SecurityMode
impl Eq for SecurityMode
impl StructuralPartialEq for SecurityMode
Auto Trait Implementations§
impl Freeze for SecurityMode
impl RefUnwindSafe for SecurityMode
impl Send for SecurityMode
impl Sync for SecurityMode
impl Unpin for SecurityMode
impl UnsafeUnpin for SecurityMode
impl UnwindSafe for SecurityMode
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