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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.