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.
Trait Implementations§
Source§impl ImmutableDataInspect<Peer> for ImmutableDataInspectManager
impl ImmutableDataInspect<Peer> for ImmutableDataInspectManager
fn new(data: &Peer, manager: Node) -> ImmutableDataInspectManager
Source§impl IsInspectable for Peer
impl IsInspectable for Peer
Source§impl WriteInspect for Peer
impl WriteInspect for Peer
Source§fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)
fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Freeze for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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
)