Struct rustable::BluetoothService[][src]

pub struct BluetoothService { /* fields omitted */ }

BluetoothService is created to interact with Bluez daemon over DBus.

Implementations

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.

Auto Trait Implementations

impl !RefUnwindSafe for BluetoothService

impl Send for BluetoothService

impl Sync for BluetoothService

impl Unpin for BluetoothService

impl !UnwindSafe for BluetoothService

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.