Struct blurz::bluetooth_device::BluetoothDevice
source · pub struct BluetoothDevice<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BluetoothDevice<'a>
impl<'a> BluetoothDevice<'a>
pub fn new(
session: &'a BluetoothSession,
object_path: 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_ready_to_receive(&self) -> Option<bool>
pub fn set_trusted(&self, value: bool) -> Result<(), 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 get_adapter(&self) -> Result<String, Box<dyn Error>>
pub fn is_legacy_pairing(&self) -> Result<bool, Box<dyn Error>>
pub fn get_modalias(&self) -> Result<(String, u32, u32, u32), 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_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, timeout_ms: i32) -> 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
sourceimpl<'a> Clone for BluetoothDevice<'a>
impl<'a> Clone for BluetoothDevice<'a>
sourcefn clone(&self) -> BluetoothDevice<'a>
fn clone(&self) -> BluetoothDevice<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> !RefUnwindSafe for BluetoothDevice<'a>
impl<'a> !Send for BluetoothDevice<'a>
impl<'a> !Sync for BluetoothDevice<'a>
impl<'a> Unpin for BluetoothDevice<'a>
impl<'a> !UnwindSafe for BluetoothDevice<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more