pub struct SecurityLevel { /* private fields */ }
Expand description
A Security Level field.
Implementations§
Source§impl SecurityLevel
impl SecurityLevel
pub fn from(buffer: u8) -> Self
Sourcepub fn security_attributes(&self) -> SecurityAttributes
pub fn security_attributes(&self) -> SecurityAttributes
Return the used Security Attributes.
Sourcepub fn data_confidentiality(&self) -> bool
pub fn data_confidentiality(&self) -> bool
Return true
when confidentiality is enabled.
Sourcepub fn data_authenticity(&self) -> bool
pub fn data_authenticity(&self) -> bool
Return true
when authenticity is enabled.
Sourcepub fn mic_length(&self) -> usize
pub fn mic_length(&self) -> usize
Return the MIC length.
Auto Trait Implementations§
impl Freeze for SecurityLevel
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnwindSafe for SecurityLevel
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