[][src]Struct btleplug::api::PeripheralProperties

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 Clone for PeripheralProperties[src]

impl Debug for PeripheralProperties[src]

impl Default for PeripheralProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.