Struct LeBondData
pub struct LeBondData {
pub connection_parameters: Option<LeConnectionParameters>,
pub services: Option<Vec<Uuid>>,
pub irk: Option<PeerKey>,
pub csrk: Option<PeerKey>,
pub peer_ltk: Option<Ltk>,
pub local_ltk: Option<Ltk>,
/* private fields */
}
Fields§
§connection_parameters: Option<LeConnectionParameters>
The peer’s preferred connection parameters, if known.
services: Option<Vec<Uuid>>
Known GATT service UUIDs.
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.
peer_ltk: Option<Ltk>
LE long-term key used to encrypt a connection when the peer is in the LE Peripheral role.
In legacy pairing (peer_ltk.security.secure_connections
is false), this key corresponds
to the key distributed by the peer. In Secure Connections pairing there is only one LTK and
peer_ltk
is the same as local_ltk
.
local_ltk: Option<Ltk>
LE long-term key used to encrypt a connection when the peer is in the LE Central role.
In legacy pairing (local_ltk.security.secure_connections
is false), this key corresponds
to the key distributed by the local device. In Secure Connections pairing there is only one
LTK and local_ltk
is the same as peer_ltk
.
Trait Implementations§
§impl Clone for LeBondData
impl Clone for LeBondData
§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 more§impl Debug for LeBondData
impl Debug for LeBondData
§impl<D> Decode<LeBondData, D> for LeBondDatawhere
D: ResourceDialect,
impl<D> Decode<LeBondData, D> for LeBondDatawhere
D: ResourceDialect,
§fn new_empty() -> LeBondData
fn new_empty() -> LeBondData
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for LeBondData
impl Default for LeBondData
§fn default() -> LeBondData
fn default() -> LeBondData
§impl<D> Encode<LeBondData, D> for &LeBondDatawhere
D: ResourceDialect,
impl<D> Encode<LeBondData, D> for &LeBondDatawhere
D: ResourceDialect,
§impl PartialEq for LeBondData
impl PartialEq for LeBondData
§impl TypeMarker for LeBondData
impl TypeMarker for LeBondData
§type Owned = LeBondData
type Owned = LeBondData
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for LeBondData
impl ValueTypeMarker for LeBondData
§type Borrowed<'a> = &'a LeBondData
type Borrowed<'a> = &'a LeBondData
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<LeBondData as TypeMarker>::Owned,
) -> <LeBondData as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<LeBondData as TypeMarker>::Owned, ) -> <LeBondData as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.