Struct btleplug::api::PeripheralProperties [−][src]
pub struct PeripheralProperties { pub address: BDAddr, pub address_type: Option<AddressType>, pub local_name: Option<String>, pub tx_power_level: Option<i8>, pub manufacturer_data: HashMap<u16, Vec<u8>>, pub service_data: HashMap<Uuid, Vec<u8>>, pub services: Vec<Uuid>, pub discovery_count: u32, }
Expand description
The properties of this peripheral, as determined by the advertising reports we’ve received for it.
Fields
address: BDAddr
The address of this peripheral
address_type: Option<AddressType>
The type of address (either random or public)
local_name: Option<String>
The local name. This is generally a human-readable string that identifies the type of device.
tx_power_level: Option<i8>
The transmission power level for the device
manufacturer_data: HashMap<u16, Vec<u8>>
Advertisement data specific to the device manufacturer. The keys of this map are ‘manufacturer IDs’, while the values are arbitrary data.
service_data: HashMap<Uuid, Vec<u8>>
Advertisement data specific to a service. The keys of this map are ‘Service UUIDs’, while the values are arbitrary data.
services: Vec<Uuid>
Advertised services for this device
discovery_count: u32
Number of times we’ve seen advertising reports for this device
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PeripheralProperties
impl Send for PeripheralProperties
impl Sync for PeripheralProperties
impl Unpin for PeripheralProperties
impl UnwindSafe for PeripheralProperties
Blanket Implementations
Mutably borrows from an owned value. Read more