pub struct SecurityControl { /* private fields */ }
Expand description
A reader/writer for the IEEE 802.15.4 Security Control field.
Implementations§
Source§impl SecurityControl
impl SecurityControl
pub fn from(buffer: u8) -> Self
Sourcepub fn security_level(&self) -> SecurityLevel
pub fn security_level(&self) -> SecurityLevel
Return the security level field.
Sourcepub fn key_identifier_mode(&self) -> KeyIdentifierField
pub fn key_identifier_mode(&self) -> KeyIdentifierField
Return the key identifier mode field.
Sourcepub fn frame_counter_suppression(&self) -> bool
pub fn frame_counter_suppression(&self) -> bool
Returns true
the frame counter is suppressed.
Sourcepub fn asn_in_nonce(&self) -> bool
pub fn asn_in_nonce(&self) -> bool
Returns true
when the ASN is included in the nonce.
Auto Trait Implementations§
impl Freeze for SecurityControl
impl RefUnwindSafe for SecurityControl
impl Send for SecurityControl
impl Sync for SecurityControl
impl Unpin for SecurityControl
impl UnwindSafe for SecurityControl
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