Struct rustable::BluetoothService [−][src]
pub struct BluetoothService { /* fields omitted */ }BluetoothService is created to interact with Bluez daemon over DBus.
Implementations
impl BluetoothService[src]
impl BluetoothService[src]pub async fn from_conn(conn: Arc<RpcConn>) -> Result<Self, Error>[src]
Create a new BluetoothService struct by reusing an existing async_rustbus::RpcConn.
pub async fn new() -> Result<Self, Error>[src]
Creates a new BluetoothService and setup a DBus client to interact with Bluez.
pub async fn get_adapter(&self, idx: u8) -> Result<Adapter, Error>[src]
Get an Adapter corresponding to the idx given.
On most systems index will be zero.
pub fn conn(&self) -> &Arc<RpcConn>[src]
Get a reference to Arc<async_rustbus::RpcConn> used to communicate with the Bluez daemon.