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: PeerIdUniquely identifies this peer on the current system.
address: AddressBluetooth 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: TechnologyTypeThe Bluetooth technologies that are supported by this peer.
connected: boolWhether or not a BR/EDR and/or LE connection exists to this peer.
bonded: boolWhether 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
Available on Fuchsia only.
impl ImmutableDataInspect<Peer> for ImmutableDataInspectManager
Source§impl IsInspectable for Peer
Available on Fuchsia only.
impl IsInspectable for Peer
Source§impl WriteInspect for Peer
Available on Fuchsia only.
impl WriteInspect for Peer
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more