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]
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.