pub enum BluetoothDevice {
Bluez(Device),
}
Expand description
A bluetooth device
Variants§
Trait Implementations§
Source§impl BluetoothDeviceTrait for BluetoothDevice
impl BluetoothDeviceTrait for BluetoothDevice
Source§fn get_uuids(&mut self) -> Result<Vec<BluetoothUuid>, Error>
fn get_uuids(&mut self) -> Result<Vec<BluetoothUuid>, Error>
Get all known uuids for this device
Source§fn get_pair_state(&self) -> Result<PairingStatus, Error>
fn get_pair_state(&self) -> Result<PairingStatus, Error>
Retrieve the device pairing status
Source§fn get_rfcomm_socket(
&mut self,
__enum_dispatch_arg_0: BluetoothUuid,
__enum_dispatch_arg_1: bool,
) -> Result<BluetoothRfcommSocket<'_>, String>
fn get_rfcomm_socket( &mut self, __enum_dispatch_arg_0: BluetoothUuid, __enum_dispatch_arg_1: bool, ) -> Result<BluetoothRfcommSocket<'_>, String>
Attempt to get an rfcomm socket for the given uuid and seciruty setting
Source§impl From<Device> for BluetoothDevice
impl From<Device> for BluetoothDevice
Source§fn from(v: Device) -> BluetoothDevice
fn from(v: Device) -> BluetoothDevice
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BluetoothDevice
impl !RefUnwindSafe for BluetoothDevice
impl Send for BluetoothDevice
impl Sync for BluetoothDevice
impl Unpin 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