Struct bluetooth::empty::BluetoothDevice
source · pub struct BluetoothDevice {}
Implementations§
source§impl BluetoothDevice
impl BluetoothDevice
pub fn new(_device: String) -> BluetoothDevice
pub fn get_id(&self) -> String
pub fn get_address(&self) -> Result<String, Box<dyn Error>>
pub fn get_name(&self) -> Result<String, Box<dyn Error>>
pub fn get_icon(&self) -> Result<String, Box<dyn Error>>
pub fn get_class(&self) -> Result<u32, Box<dyn Error>>
pub fn get_appearance(&self) -> Result<u16, Box<dyn Error>>
pub fn get_uuids(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn is_paired(&self) -> Result<bool, Box<dyn Error>>
pub fn is_connected(&self) -> Result<bool, Box<dyn Error>>
pub fn is_trusted(&self) -> Result<bool, Box<dyn Error>>
pub fn is_blocked(&self) -> Result<bool, Box<dyn Error>>
pub fn get_alias(&self) -> Result<String, Box<dyn Error>>
pub fn set_alias(&self, _value: String) -> Result<(), Box<dyn Error>>
pub fn is_legacy_pairing(&self) -> Result<bool, Box<dyn Error>>
pub fn get_vendor_id_source(&self) -> Result<String, Box<dyn Error>>
pub fn get_vendor_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_product_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_device_id(&self) -> Result<u32, Box<dyn Error>>
pub fn get_modalias(&self) -> Result<(String, u32, u32, u32), Box<dyn Error>>
pub fn get_rssi(&self) -> Result<i16, Box<dyn Error>>
pub fn get_tx_power(&self) -> Result<i16, Box<dyn Error>>
pub fn get_manufacturer_data( &self, ) -> Result<HashMap<u16, Vec<u8>>, Box<dyn Error>>
pub fn get_service_data( &self, ) -> Result<HashMap<String, Vec<u8>>, Box<dyn Error>>
pub fn get_gatt_services(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn connect(&self) -> Result<(), Box<dyn Error>>
pub fn disconnect(&self) -> Result<(), Box<dyn Error>>
pub fn connect_profile(&self, _uuid: String) -> Result<(), Box<dyn Error>>
pub fn disconnect_profile(&self, _uuid: String) -> Result<(), Box<dyn Error>>
pub fn pair(&self) -> Result<(), Box<dyn Error>>
pub fn cancel_pairing(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
source§impl Clone for BluetoothDevice
impl Clone for BluetoothDevice
source§fn clone(&self) -> BluetoothDevice
fn clone(&self) -> BluetoothDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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