pub enum BluetoothAdapter {
Bluez(BluetoothHandler),
}
Expand description
Represents a bluetooth adapter that communicates to bluetooth devices
Variants§
Bluez(BluetoothHandler)
On linux, bluetooth adapter using the bluez library
Trait Implementations§
Source§impl BluetoothAdapterTrait for BluetoothAdapter
impl BluetoothAdapterTrait for BluetoothAdapter
Source§async fn register_rfcomm_profile(
&self,
__enum_dispatch_arg_0: BluetoothRfcommProfileSettings,
) -> Result<BluetoothRfcommProfile, String>
async fn register_rfcomm_profile( &self, __enum_dispatch_arg_0: BluetoothRfcommProfileSettings, ) -> Result<BluetoothRfcommProfile, String>
Attempt to register a new rfcomm profile
Source§fn get_paired_devices(&self) -> Option<Vec<BluetoothDevice>>
fn get_paired_devices(&self) -> Option<Vec<BluetoothDevice>>
Get a list of paired bluetooth devices
Source§fn start_discovery(&self) -> BluetoothDiscovery<'_>
fn start_discovery(&self) -> BluetoothDiscovery<'_>
Start discovery of bluetooth devices. Run this and drop the result to cancel discovery
Auto Trait Implementations§
impl Freeze for BluetoothAdapter
impl !RefUnwindSafe for BluetoothAdapter
impl Send for BluetoothAdapter
impl Sync for BluetoothAdapter
impl Unpin 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