Enum ieee802154::mac::frame::security::SecurityLevel
source · [−]pub enum SecurityLevel {
None,
MIC32,
MIC64,
MIC128,
ENC,
ENCMIC32,
ENCMIC64,
ENCMIC128,
}
Expand description
The level of security applied to the payload
Variants
None
No encryption and no data authentication
MIC32
No encryption and a 32 bit value to verify data authenticity
MIC64
No encryption and a 64 bit value to verify data authenticity
MIC128
No encryption and a 128 bit value to verify data authenticity
ENC
Encryption and no data authentication
ENCMIC32
Encryption and a 32 bit value to verify data authenticity
ENCMIC64
Encryption and a 64 bit value to verify data authenticity
ENCMIC128
Encryption and a 128 bit value to verify data authenticity
Implementations
sourceimpl SecurityLevel
impl SecurityLevel
sourcepub fn get_mic_octet_size(&self) -> usize
pub fn get_mic_octet_size(&self) -> usize
Get the size of the mic that will be generated if this specific security level is used
Trait Implementations
sourceimpl Clone for SecurityLevel
impl Clone for SecurityLevel
sourcefn clone(&self) -> SecurityLevel
fn clone(&self) -> SecurityLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SecurityLevel
impl Debug for SecurityLevel
sourceimpl Hash for SecurityLevel
impl Hash for SecurityLevel
sourceimpl PartialEq<SecurityLevel> for SecurityLevel
impl PartialEq<SecurityLevel> for SecurityLevel
sourcefn eq(&self, other: &SecurityLevel) -> bool
fn eq(&self, other: &SecurityLevel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for SecurityLevel
impl Eq for SecurityLevel
impl StructuralEq for SecurityLevel
impl StructuralPartialEq for SecurityLevel
Auto Trait Implementations
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnwindSafe for SecurityLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more