pub struct BlePeerLinkInfo {
pub state: ConnectionState,
pub last_rssi: Option<i8>,
}Expand description
Minimal per-peer link info exposed by BluetoothLETransport::peer_link_info.
Surfaces only the fields that peat-mesh’s PeatBleTransport
synthesises into the unified LinkState for ADR-032 §Amendment A
(per-peer link state query + host-rendering rule). Adapters that
already track per-peer state (advertisement RSSI, GATT lifecycle)
return Some; adapters that don’t fall through to the trait’s
default None. The richer PeerConnectionState (timestamps,
byte counters, mesh metadata) is defined in this crate alongside
this type and is held by crate::PeatMesh (peat-btle’s high-
level mesh facade) via its ConnectionStateGraph; it is
intentionally not surfaced here — the visualization layer doesn’t
need that detail, and BluetoothLETransport (which this accessor
hangs off of) doesn’t own a ConnectionStateGraph in any case.
Fields§
§state: ConnectionStateCurrent connection lifecycle state.
last_rssi: Option<i8>Most recent RSSI reading in dBm, where the adapter has one.
Trait Implementations§
Source§impl Clone for BlePeerLinkInfo
impl Clone for BlePeerLinkInfo
Source§fn clone(&self) -> BlePeerLinkInfo
fn clone(&self) -> BlePeerLinkInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlePeerLinkInfo
impl Debug for BlePeerLinkInfo
Source§impl PartialEq for BlePeerLinkInfo
impl PartialEq for BlePeerLinkInfo
Source§fn eq(&self, other: &BlePeerLinkInfo) -> bool
fn eq(&self, other: &BlePeerLinkInfo) -> bool
self and other values to be equal, and is used by ==.impl Eq for BlePeerLinkInfo
impl StructuralPartialEq for BlePeerLinkInfo
Auto Trait Implementations§
impl Freeze for BlePeerLinkInfo
impl RefUnwindSafe for BlePeerLinkInfo
impl Send for BlePeerLinkInfo
impl Sync for BlePeerLinkInfo
impl Unpin for BlePeerLinkInfo
impl UnsafeUnpin for BlePeerLinkInfo
impl UnwindSafe for BlePeerLinkInfo
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.