pub enum BluetoothDevice {
Bluez(LinuxBluetoothDevice),
}Expand description
A bluetooth device
Variants§
Bluez(LinuxBluetoothDevice)
Bluetooth device on linux using the bluez library
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<BluetoothSocket<'_>, String>
fn get_rfcomm_socket( &mut self, __enum_dispatch_arg_0: BluetoothUuid, __enum_dispatch_arg_1: bool, ) -> Result<BluetoothSocket<'_>, String>
Attempt to get an rfcomm socket for the given uuid and security setting
Source§fn get_l2cap_socket(
&mut self,
__enum_dispatch_arg_0: BluetoothUuid,
__enum_dispatch_arg_1: bool,
) -> Result<BluetoothSocket<'_>, String>
fn get_l2cap_socket( &mut self, __enum_dispatch_arg_0: BluetoothUuid, __enum_dispatch_arg_1: bool, ) -> Result<BluetoothSocket<'_>, String>
Attempt to get an l2cap socket for the given uuid and security setting
Auto Trait Implementations§
impl Freeze 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