pub struct BluetoothDevice {
pub path: String,
pub adapter: String,
pub address: String,
pub name: String,
pub icon: String,
pub connected: bool,
pub state: BluetoothDeviceState,
pub paired: bool,
pub trusted: bool,
pub battery: Option<u8>,
}Expand description
A device BlueZ knows: one paired before, or one discovery found.
Fields§
§path: StringBlueZ’s object path for it, which names it while it exists.
adapter: StringThe path of the adapter it is reached through.
address: StringIts address, such as AA:BB:CC:DD:EE:01.
name: StringIts Alias, else its Name, else its address.
icon: StringThe icon BlueZ suggests, such as audio-headset, or "".
connected: boolWhether it is connected.
state: BluetoothDeviceStateWhether it is connected, or on the way while a call made through
Bluetooth is out.
paired: boolWhether it is paired.
trusted: boolWhether it may connect without asking.
battery: Option<u8>How full its battery is, from 0 to 100, if it says.
Trait Implementations§
Source§impl Clone for BluetoothDevice
impl Clone for BluetoothDevice
Source§impl Debug for BluetoothDevice
impl Debug for BluetoothDevice
Source§impl PartialEq for BluetoothDevice
impl PartialEq for BluetoothDevice
impl StructuralPartialEq for BluetoothDevice
Auto Trait Implementations§
impl Forget for BluetoothDevice
impl Freeze for BluetoothDevice
impl Move for BluetoothDevice
impl RefUnwindSafe for BluetoothDevice
impl Send for BluetoothDevice
impl Sync for BluetoothDevice
impl Unpin for BluetoothDevice
impl UnsafeUnpin for BluetoothDevice
impl UnwindSafe for BluetoothDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more