pub trait BleConnection: Send + Sync {
// Required methods
fn peer_id(&self) -> &NodeId;
fn is_alive(&self) -> bool;
fn mtu(&self) -> u16;
fn phy(&self) -> BlePhy;
fn rssi(&self) -> Option<i8>;
fn connected_duration(&self) -> Duration;
}Expand description
Connection to a BLE peer
Represents an active GATT connection to a remote device.
Required Methods§
Sourcefn connected_duration(&self) -> Duration
fn connected_duration(&self) -> Duration
Get connection duration