pub struct Scf(pub u8);Expand description
Security-control field wrapper.
Tuple Fields§
§0: u8Implementations§
Source§impl Scf
impl Scf
Sourcepub const fn new(encrypted: bool, mic_size: MicSize, salt_present: bool) -> Self
pub const fn new(encrypted: bool, mic_size: MicSize, salt_present: bool) -> Self
Build an SCF from structured flags.
Sourcepub fn mic_size(self) -> Result<MicSize, ParseError>
pub fn mic_size(self) -> Result<MicSize, ParseError>
Decode the configured MIC size.
Sourcepub const fn salt_present(self) -> bool
pub const fn salt_present(self) -> bool
Return whether a salt field follows the frame counter.
Sourcepub const fn reserved_valid(self) -> bool
pub const fn reserved_valid(self) -> bool
Return whether the reserved low nibble is valid for the current spec.
Trait Implementations§
impl Copy for Scf
impl Eq for Scf
impl StructuralPartialEq for Scf
Auto Trait Implementations§
impl Freeze for Scf
impl RefUnwindSafe for Scf
impl Send for Scf
impl Sync for Scf
impl Unpin for Scf
impl UnwindSafe for Scf
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)