pub enum BluetoothAdapterState {
Enabled,
Disabled,
Enabling,
Disabling,
Blocked,
}Expand description
Whether an adapter is on, from BlueZ’s PowerState.
Variants§
Enabled
On.
Disabled
Off.
Enabling
Turning on.
Disabling
Turning off.
Blocked
Off, and held off by rfkill, as by a laptop’s airplane mode.
Trait Implementations§
Source§impl Clone for BluetoothAdapterState
impl Clone for BluetoothAdapterState
impl Copy for BluetoothAdapterState
Source§impl Debug for BluetoothAdapterState
impl Debug for BluetoothAdapterState
impl Eq for BluetoothAdapterState
Source§impl PartialEq for BluetoothAdapterState
impl PartialEq for BluetoothAdapterState
impl StructuralPartialEq for BluetoothAdapterState
Auto Trait Implementations§
impl Forget for BluetoothAdapterState
impl Freeze for BluetoothAdapterState
impl Move for BluetoothAdapterState
impl RefUnwindSafe for BluetoothAdapterState
impl Send for BluetoothAdapterState
impl Sync for BluetoothAdapterState
impl Unpin for BluetoothAdapterState
impl UnsafeUnpin for BluetoothAdapterState
impl UnwindSafe for BluetoothAdapterState
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