Skip to main content

BluetoothDeviceSyncTrait

Trait BluetoothDeviceSyncTrait 

Source
pub trait BluetoothDeviceSyncTrait {
    // Required methods
    fn get_uuids(&mut self) -> Result<Vec<BluetoothUuid>, Error>;
    fn get_name(&self) -> Result<String, Error>;
    fn get_pair_state(&self) -> Result<PairingStatus, Error>;
}
Expand description

Holds the sync functions for a bluetooth device

Required Methods§

Source

fn get_uuids(&mut self) -> Result<Vec<BluetoothUuid>, Error>

Get all known uuids for this device

Source

fn get_name(&self) -> Result<String, Error>

Retrieve the device name

Source

fn get_pair_state(&self) -> Result<PairingStatus, Error>

Retrieve the device pairing status

Implementors§