pub struct Bond {
pub identity: Address,
pub ltk: Option<LongTermKey>,
pub local_ltk: Option<LongTermKey>,
pub irk: Option<u128>,
pub csrk: Option<u128>,
pub authenticated: bool,
pub secure_connections: bool,
pub cccd: Vec<(u16, u16)>,
pub label: Option<String>,
pub aliases: Vec<Address>,
}Expand description
What we keep about a bonded (or otherwise known) device.
Fields§
§identity: AddressThe device’s identity address.
ltk: Option<LongTermKey>The key to encrypt with: the Secure Connections LTK, or under legacy pairing the one the peer distributed (used when we are central).
local_ltk: Option<LongTermKey>Under legacy pairing, the LTK we distributed (used when we are peripheral).
irk: Option<u128>The device’s Identity Resolving Key.
csrk: Option<u128>The device’s Connection Signature Resolving Key.
authenticated: boolThe pairing had MITM protection.
secure_connections: boolThe pairing used Secure Connections.
cccd: Vec<(u16, u16)>Its GATT client configuration on our server: (value handle, bits).
label: Option<String>A label, for IRKs entered by hand (tags whose IRK is known without pairing).
aliases: Vec<Address>Other (non-resolvable) addresses the device paired from: some devices distribute a public identity but connect from a static random address.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bond
impl<'de> Deserialize<'de> for Bond
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bond
impl StructuralPartialEq for Bond
Auto Trait Implementations§
impl Freeze for Bond
impl RefUnwindSafe for Bond
impl Send for Bond
impl Sync for Bond
impl Unpin for Bond
impl UnsafeUnpin for Bond
impl UnwindSafe for Bond
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