#[repr(transparent)]pub struct LongTermKey(pub u128);Expand description
LE Secure Connections Long Term Key.
Tuple Fields§
§0: u128Implementations§
Source§impl LongTermKey
impl LongTermKey
Sourcepub const fn new(k: u128) -> LongTermKey
pub const fn new(k: u128) -> LongTermKey
Creates a Long Term Key from a u128 value.
Sourcepub const fn from_le_bytes(k: [u8; 16]) -> LongTermKey
pub const fn from_le_bytes(k: [u8; 16]) -> LongTermKey
Creates a Long Term Key from a [u8; 16] value in little endian.
Sourcepub const fn to_le_bytes(self) -> [u8; 16]
pub const fn to_le_bytes(self) -> [u8; 16]
Creates a Long Term Key from a [u8; 16] value in little endian.
Trait Implementations§
Source§impl Clone for LongTermKey
impl Clone for LongTermKey
Source§fn clone(&self) -> LongTermKey
fn clone(&self) -> LongTermKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LongTermKey
impl Debug for LongTermKey
Source§impl Display for LongTermKey
impl Display for LongTermKey
Source§impl Format for LongTermKey
Available on crate feature defmt only.
impl Format for LongTermKey
Available on crate feature
defmt only.Source§impl PartialEq for LongTermKey
impl PartialEq for LongTermKey
impl Copy for LongTermKey
impl Eq for LongTermKey
impl StructuralPartialEq for LongTermKey
Auto Trait Implementations§
impl Freeze for LongTermKey
impl RefUnwindSafe for LongTermKey
impl Send for LongTermKey
impl Sync for LongTermKey
impl Unpin for LongTermKey
impl UnwindSafe for LongTermKey
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