Struct rustable::Device[][src]

pub struct Device { /* fields omitted */ }

Represents a remote Bluetooth device.

It can be used to check connection status, or retrieve its GATT services.

Implementations

impl Device[src]

pub async fn get_services(&self) -> Result<Vec<LocalService>, Error>[src]

Get all the GATT services for a remote device.

pub async fn get_service(&self, uuid: UUID) -> Result<Service, Error>[src]

Get the GATT service for the given uuid if it exist on the remote device.

pub async fn connected(&self) -> Result<bool, Error>[src]

Check if the device is connected to the local adapter.

pub fn addr(&self) -> MAC[src]

Get the address of the remote device.

Auto Trait Implementations

impl !RefUnwindSafe for Device

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl !UnwindSafe for Device

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.