pub struct SecurityControl(pub u8);Expand description
Security Control
See Section 4.5.1.1.
Tuple Fields§
§0: u8Implementations§
Source§impl SecurityControl
impl SecurityControl
Sourcepub fn security_level(&self) -> SecurityLevel
pub fn security_level(&self) -> SecurityLevel
Indicates how a frame is secured.
pub fn set_security_level(&mut self, level: SecurityLevel)
Sourcepub fn key_identifier(&self) -> KeyIdentifier
pub fn key_identifier(&self) -> KeyIdentifier
Identifies the key in use.
pub fn set_key_identifier(&mut self, key_id: KeyIdentifier)
Sourcepub fn extended_nonce(&self) -> bool
pub fn extended_nonce(&self) -> bool
Set if the sender address of the auxiliary header is present.
pub fn set_extended_nonce(&mut self, extended_nonce: bool)
Trait Implementations§
Source§impl Clone for SecurityControl
impl Clone for SecurityControl
impl Copy for SecurityControl
Source§impl Debug for SecurityControl
impl Debug for SecurityControl
Source§impl Default for SecurityControl
impl Default for SecurityControl
Source§impl<C: Default> TryRead<'_, C> for SecurityControl
impl<C: Default> TryRead<'_, C> for SecurityControl
Auto Trait Implementations§
impl Freeze for SecurityControl
impl RefUnwindSafe for SecurityControl
impl Send for SecurityControl
impl Sync for SecurityControl
impl Unpin for SecurityControl
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more