Struct blurz::bluetooth_adapter::BluetoothAdapter
[−]
[src]
pub struct BluetoothAdapter { /* fields omitted */ }
Methods
impl BluetoothAdapter
[src]
fn init() -> Result<BluetoothAdapter, Box<Error>>
[src]
fn create_adapter(object_path: String) -> Result<BluetoothAdapter, Box<Error>>
[src]
fn get_id(&self) -> String
[src]
fn get_first_device(&self) -> Result<BluetoothDevice, Box<Error>>
[src]
fn get_device_list(&self) -> Result<Vec<String>, Box<Error>>
[src]
fn get_address(&self) -> Result<String, Box<Error>>
[src]
fn get_name(&self) -> Result<String, Box<Error>>
[src]
fn get_alias(&self) -> Result<String, Box<Error>>
[src]
fn set_alias(&self, value: String) -> Result<(), Box<Error>>
[src]
fn get_class(&self) -> Result<u32, Box<Error>>
[src]
fn is_powered(&self) -> Result<bool, Box<Error>>
[src]
fn set_powered(&self, value: bool) -> Result<(), Box<Error>>
[src]
fn is_discoverable(&self) -> Result<bool, Box<Error>>
[src]
fn set_discoverable(&self, value: bool) -> Result<(), Box<Error>>
[src]
fn is_pairable(&self) -> Result<bool, Box<Error>>
[src]
fn set_pairable(&self, value: bool) -> Result<(), Box<Error>>
[src]
fn get_pairable_timeout(&self) -> Result<u32, Box<Error>>
[src]
fn set_pairable_timeout(&self, value: u32) -> Result<(), Box<Error>>
[src]
fn get_discoverable_timeout(&self) -> Result<u32, Box<Error>>
[src]
fn set_discoverable_timeout(&self, value: u32) -> Result<(), Box<Error>>
[src]
fn is_discovering(&self) -> Result<bool, Box<Error>>
[src]
fn get_uuids(&self) -> Result<Vec<String>, Box<Error>>
[src]
fn get_modalias(&self) -> Result<(String, u32, u32, u32), Box<Error>>
[src]
fn get_vendor_id_source(&self) -> Result<String, Box<Error>>
[src]
fn get_vendor_id(&self) -> Result<u32, Box<Error>>
[src]
fn get_product_id(&self) -> Result<u32, Box<Error>>
[src]
fn get_device_id(&self) -> Result<u32, Box<Error>>
[src]
fn start_discovery(&self) -> Result<(), Box<Error>>
[src]
fn stop_discovery(&self) -> Result<(), Box<Error>>
[src]
fn remove_device(&self, device: String) -> Result<(), Box<Error>>
[src]
Trait Implementations
impl Clone for BluetoothAdapter
[src]
fn clone(&self) -> BluetoothAdapter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more