Struct rumble::api::PeripheralProperties
[−]
[src]
pub struct PeripheralProperties { pub address: BDAddr, pub address_type: AddressType, pub local_name: Option<String>, pub tx_power_level: Option<i8>, pub manufacturer_data: Option<Vec<u8>>, pub discovery_count: u32, pub has_scan_response: bool, }
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: 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: Option<Vec<u8>>
Unstructured data set by the device manufacturer
discovery_count: u32
Number of times we've seen advertising reports for this device
has_scan_response: bool
True if we've discovered the device before
Trait Implementations
impl Debug for PeripheralProperties
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for PeripheralProperties
[src]
fn default() -> PeripheralProperties
[src]
Returns the "default value" for a type. Read more
impl Clone for PeripheralProperties
[src]
fn clone(&self) -> PeripheralProperties
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more