Struct fuchsia_bluetooth::types::Peer
source · pub struct Peer {
pub id: PeerId,
pub address: Address,
pub technology: TechnologyType,
pub connected: bool,
pub bonded: bool,
pub name: Option<String>,
pub appearance: Option<Appearance>,
pub device_class: Option<DeviceClass>,
pub rssi: Option<i8>,
pub tx_power: Option<i8>,
pub le_services: Vec<Uuid>,
pub bredr_services: Vec<Uuid>,
}
Fields§
§id: PeerId
Uniquely identifies this peer on the current system.
address: Address
Bluetooth device address that identifies this peer. Avoid using this and prefer to use name and/or appearance instead.
NOTE: Clients should prefer to use the id
field to keep track of
peers instead of their address.
technology: TechnologyType
The Bluetooth technologies that are supported by this peer.
connected: bool
Whether or not a BR/EDR and/or LE connection exists to this peer.
bonded: bool
Whether or not this peer is bonded.
name: Option<String>
The name of the peer, if known.
appearance: Option<Appearance>
The LE appearance property. Present if this peer supports LE and the appearance information was obtained over advertising and/or GATT.
device_class: Option<DeviceClass>
The class of device for this device, if known.
rssi: Option<i8>
The most recently obtained advertising signal strength for this peer. Present if known.
tx_power: Option<i8>
The most recently obtained transmission power for this peer. Present if known.
le_services: Vec<Uuid>
The list of peer service UUIDs known to be available on the LE transport.
bredr_services: Vec<Uuid>
The cached list of service UUIDs previously discovered on the BR/EDR transport.