pub enum BluetoothDeviceState {
Disconnected,
Connecting,
Connected,
Disconnecting,
}Expand description
Whether a device is connected, from BlueZ’s Connected and the calls
made through Bluetooth.
Variants§
Disconnected
Not connected.
Connecting
A Bluetooth::connect call is out.
Connected
Connected.
Disconnecting
A Bluetooth::disconnect call is out.
Trait Implementations§
Source§impl Clone for BluetoothDeviceState
impl Clone for BluetoothDeviceState
impl Copy for BluetoothDeviceState
Source§impl Debug for BluetoothDeviceState
impl Debug for BluetoothDeviceState
impl Eq for BluetoothDeviceState
Source§impl PartialEq for BluetoothDeviceState
impl PartialEq for BluetoothDeviceState
impl StructuralPartialEq for BluetoothDeviceState
Auto Trait Implementations§
impl Forget for BluetoothDeviceState
impl Freeze for BluetoothDeviceState
impl Move for BluetoothDeviceState
impl RefUnwindSafe for BluetoothDeviceState
impl Send for BluetoothDeviceState
impl Sync for BluetoothDeviceState
impl Unpin for BluetoothDeviceState
impl UnsafeUnpin for BluetoothDeviceState
impl UnwindSafe for BluetoothDeviceState
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