Struct blurz::bluetooth_adapter::BluetoothAdapter
source · pub struct BluetoothAdapter<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BluetoothAdapter<'a>
impl<'a> BluetoothAdapter<'a>
pub fn init(
session: &BluetoothSession
) -> Result<BluetoothAdapter<'_>, Box<dyn Error>>
pub fn create_adapter(
session: &BluetoothSession,
object_path: String
) -> Result<BluetoothAdapter<'_>, Box<dyn Error>>
pub fn get_id(&self) -> String
pub fn get_first_device(&self) -> Result<BluetoothDevice<'_>, Box<dyn Error>>
pub fn get_device_list(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn get_address(&self) -> Result<String, Box<dyn Error>>
pub fn get_name(&self) -> Result<String, 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_class(&self) -> Result<u32, Box<dyn Error>>
pub fn is_powered(&self) -> Result<bool, Box<dyn Error>>
pub fn set_powered(&self, value: bool) -> Result<(), Box<dyn Error>>
pub fn is_discoverable(&self) -> Result<bool, Box<dyn Error>>
pub fn set_discoverable(&self, value: bool) -> Result<(), Box<dyn Error>>
pub fn is_pairable(&self) -> Result<bool, Box<dyn Error>>
pub fn set_pairable(&self, value: bool) -> Result<(), Box<dyn Error>>
pub fn get_pairable_timeout(&self) -> Result<u32, Box<dyn Error>>
pub fn set_pairable_timeout(&self, value: u32) -> Result<(), Box<dyn Error>>
pub fn get_discoverable_timeout(&self) -> Result<u32, Box<dyn Error>>
pub fn set_discoverable_timeout(&self, value: u32) -> Result<(), Box<dyn Error>>
pub fn is_discovering(&self) -> Result<bool, Box<dyn Error>>
pub fn get_uuids(&self) -> Result<Vec<String>, 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 start_discovery(&self) -> Result<(), Box<dyn Error>>
pub fn stop_discovery(&self) -> Result<(), Box<dyn Error>>
pub fn remove_device(&self, device: String) -> Result<(), Box<dyn Error>>
Trait Implementations
sourceimpl<'a> Clone for BluetoothAdapter<'a>
impl<'a> Clone for BluetoothAdapter<'a>
sourcefn clone(&self) -> BluetoothAdapter<'a>
fn clone(&self) -> BluetoothAdapter<'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 BluetoothAdapter<'a>
impl<'a> !Send for BluetoothAdapter<'a>
impl<'a> !Sync for BluetoothAdapter<'a>
impl<'a> Unpin for BluetoothAdapter<'a>
impl<'a> !UnwindSafe for BluetoothAdapter<'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