Enum bluer::DeviceProperty[][src]

pub enum DeviceProperty {
Show 21 variants Name(String), AddressType(AddressType), Icon(String), Class(u32), Appearance(u16), Uuids(HashSet<Uuid>), Paired(bool), Connected(bool), Trusted(bool), Blocked(bool), WakeAllowed(bool), Alias(String), LegacyPairing(bool), Modalias(Modalias), Rssi(i16), TxPower(i16), ManufacturerData(HashMap<u16, Vec<u8>>), ServiceData(HashMap<Uuid, Vec<u8>>), ServicesResolved(bool), AdvertisingFlags(Vec<u8>), AdvertisingData(HashMap<u8, Vec<u8>>),
}
This is supported on crate feature bluetoothd only.
Expand description

Bluetooth device property.

Variants

Name(String)

The Bluetooth remote name.

This value can not be changed. Use the Alias property instead.

This value is only present for completeness. It is better to always use the Alias property when displaying the devices name.

If the Alias property is unset, it will reflect this value which makes it more convenient.

Tuple Fields of Name

0: String
AddressType(AddressType)

The Bluetooth device Address Type.

For dual-mode and BR/EDR only devices this defaults to “public”. Single mode LE devices may have either value. If remote device uses privacy than before pairing this represents address type used for connection and Identity Address after pairing.

Tuple Fields of AddressType

0: AddressType
Icon(String)

Proposed icon name according to the freedesktop.org icon naming specification.

Tuple Fields of Icon

0: String
Class(u32)

The Bluetooth class of device of the remote device.

Tuple Fields of Class

0: u32
Appearance(u16)

External appearance of device, as found on GAP service.

Tuple Fields of Appearance

0: u16
Uuids(HashSet<Uuid>)

List of 128-bit UUIDs that represents the available remote services.

Tuple Fields of Uuids

0: HashSet<Uuid>
Paired(bool)

Indicates if the remote device is paired.

Tuple Fields of Paired

0: bool
Connected(bool)

Indicates if the remote device is paired.

Tuple Fields of Connected

0: bool
Trusted(bool)

Indicates if the remote is seen as trusted. This setting can be changed by the application.

Tuple Fields of Trusted

0: bool
Blocked(bool)

If set to true any incoming connections from the device will be immediately rejected.

Any device drivers will also be removed and no new ones will be probed as long as the device is blocked.

Tuple Fields of Blocked

0: bool
WakeAllowed(bool)

If set to true this device will be allowed to wake the host from system suspend.

Tuple Fields of WakeAllowed

0: bool
Alias(String)

The name alias for the remote device.

The alias can be used to have a different friendly name for the remote device.

In case no alias is set, it will return the remote device name. Setting an empty string as alias will convert it back to the remote device name.

When resetting the alias with an empty string, the property will default back to the remote name.

Tuple Fields of Alias

0: String
LegacyPairing(bool)

Set to true if the device only supports the pre-2.1 pairing mechanism.

This property is useful during device discovery to anticipate whether legacy or simple pairing will occur if pairing is initiated.

Note that this property can exhibit false-positives in the case of Bluetooth 2.1 (or newer) devices that have disabled Extended Inquiry Response support.

Tuple Fields of LegacyPairing

0: bool
Modalias(Modalias)

Remote Device ID information in modalias format used by the kernel and udev.

Tuple Fields of Modalias

0: Modalias
Rssi(i16)

Received Signal Strength Indicator of the remote device (inquiry or advertising).

Tuple Fields of Rssi

0: i16
TxPower(i16)

Advertised transmitted power level (inquiry or advertising).

Tuple Fields of TxPower

0: i16
ManufacturerData(HashMap<u16, Vec<u8>>)

Manufacturer specific advertisement data.

Keys are 16 bits Manufacturer ID followed by its byte array value.

Tuple Fields of ManufacturerData

0: HashMap<u16, Vec<u8>>
ServiceData(HashMap<Uuid, Vec<u8>>)

Service advertisement data.

Keys are the UUIDs followed by its byte array value.

Tuple Fields of ServiceData

0: HashMap<Uuid, Vec<u8>>
ServicesResolved(bool)

Indicate whether or not service discovery has been resolved.

Tuple Fields of ServicesResolved

0: bool
AdvertisingFlags(Vec<u8>)

The Advertising Data Flags of the remote device.

Tuple Fields of AdvertisingFlags

0: Vec<u8>
AdvertisingData(HashMap<u8, Vec<u8>>)

The Advertising Data of the remote device.

Note: Only types considered safe to be handled by application are exposed.

Tuple Fields of AdvertisingData

0: HashMap<u8, Vec<u8>>

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

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.