pub struct LeBondData {
pub connection_parameters: Option<LeConnectionParameters>,
pub services: Vec<Uuid>,
pub peer_ltk: Option<Ltk>,
pub local_ltk: Option<Ltk>,
pub irk: Option<PeerKey>,
pub csrk: Option<PeerKey>,
}
Expand description
Bluetooth Low Energy specific bonding data
Fields§
§connection_parameters: Option<LeConnectionParameters>
The peer’s preferred connection parameters, if known.
services: Vec<Uuid>
Known GATT service UUIDs.
peer_ltk: Option<Ltk>
LE long-term key generated and distributed by the peer device. This key is used when the peer is the follower (i.e. the peer is in the LE peripheral role).
Note: In LE legacy pairing, both sides are allowed to generate and distribute a link key.
In Secure Connections pairing, both sides generate the same LTK and hence the peer_ltk
and
local_ltk
values are identical.
local_ltk: Option<Ltk>
LE long-term key generated and distributed by the local bt-host. This key is used when the peer is the leader (i.e. the peer in the LE central role).
Note: In LE legacy pairing, both sides are allowed to generate and distribute a link key.
In Secure Connections pairing, both sides generate the same LTK and hence the peer_ltk
and
local_ltk
values are identical.
irk: Option<PeerKey>
Identity Resolving RemoteKey used to generate and resolve random addresses.
csrk: Option<PeerKey>
Connection Signature Resolving RemoteKey used for data signing without encryption.
Trait Implementations§
Source§impl Clone for LeBondData
impl Clone for LeBondData
Source§fn clone(&self) -> LeBondData
fn clone(&self) -> LeBondData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LeBondData
impl Debug for LeBondData
Source§impl From<LeBondData> for LeBondData
impl From<LeBondData> for LeBondData
Source§fn from(src: LeBondData) -> Self
fn from(src: LeBondData) -> Self
Source§impl From<LeBondData> for LeBondData
impl From<LeBondData> for LeBondData
Source§fn from(src: LeBondData) -> Self
fn from(src: LeBondData) -> Self
Source§impl PartialEq for LeBondData
impl PartialEq for LeBondData
impl StructuralPartialEq for LeBondData
Auto Trait Implementations§
impl Freeze for LeBondData
impl RefUnwindSafe for LeBondData
impl Send for LeBondData
impl Sync for LeBondData
impl Unpin for LeBondData
impl UnwindSafe for LeBondData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)