pub struct BondInformation {
pub ltk: LongTermKey,
pub identity: Identity,
pub is_bonded: bool,
pub security_level: SecurityLevel,
}Expand description
Bond Information
Fields§
§ltk: LongTermKeyLong Term Key (LTK)
identity: IdentityPeer identity
is_bonded: boolTrue if this bond information is from a bonded pairing
security_level: SecurityLevelSecurity level of this long term key.
Implementations§
Source§impl BondInformation
impl BondInformation
Sourcepub fn new(
identity: Identity,
ltk: LongTermKey,
security_level: SecurityLevel,
is_bonded: bool,
) -> Self
pub fn new( identity: Identity, ltk: LongTermKey, security_level: SecurityLevel, is_bonded: bool, ) -> Self
Create a BondInformation
Trait Implementations§
Source§impl Clone for BondInformation
impl Clone for BondInformation
Source§fn clone(&self) -> BondInformation
fn clone(&self) -> BondInformation
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 BondInformation
impl Debug for BondInformation
Source§impl Display for BondInformation
impl Display for BondInformation
Source§impl Format for BondInformation
Available on crate feature defmt only.
impl Format for BondInformation
Available on crate feature
defmt only.Source§impl PartialEq for BondInformation
impl PartialEq for BondInformation
impl StructuralPartialEq for BondInformation
Auto Trait Implementations§
impl Freeze for BondInformation
impl RefUnwindSafe for BondInformation
impl Send for BondInformation
impl Sync for BondInformation
impl Unpin for BondInformation
impl UnwindSafe for BondInformation
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