pub struct BluetoothAdapter {
pub path: String,
pub name: String,
pub address: String,
pub powered: bool,
pub state: BluetoothAdapterState,
pub discovering: bool,
}Expand description
A Bluetooth radio BlueZ knows.
Fields§
§path: StringBlueZ’s object path for it, such as /org/bluez/hci0.
name: StringIts name, BlueZ’s Alias.
address: StringIts address, such as 00:1A:7D:DA:71:13.
powered: boolWhether it is on.
state: BluetoothAdapterStateWhether it is on, off or on the way. An older BlueZ, without
PowerState, says only Enabled or Disabled, from
powered.
discovering: boolWhether it is looking for devices.
Trait Implementations§
Source§impl Clone for BluetoothAdapter
impl Clone for BluetoothAdapter
Source§impl Debug for BluetoothAdapter
impl Debug for BluetoothAdapter
Source§impl PartialEq for BluetoothAdapter
impl PartialEq for BluetoothAdapter
impl StructuralPartialEq for BluetoothAdapter
Auto Trait Implementations§
impl Forget for BluetoothAdapter
impl Freeze for BluetoothAdapter
impl Move for BluetoothAdapter
impl RefUnwindSafe for BluetoothAdapter
impl Send for BluetoothAdapter
impl Sync for BluetoothAdapter
impl Unpin for BluetoothAdapter
impl UnsafeUnpin for BluetoothAdapter
impl UnwindSafe for BluetoothAdapter
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