The set of characteristics we've discovered for this device. This will be empty until `discover_services` is called.
(&self)
| 274 | /// The set of characteristics we've discovered for this device. This will be empty until |
| 275 | /// `discover_services` is called. |
| 276 | fn characteristics(&self) -> BTreeSet<Characteristic> { |
| 277 | self.services() |
| 278 | .iter() |
| 279 | .flat_map(|service| service.characteristics.clone().into_iter()) |
| 280 | .collect() |
| 281 | } |
| 282 | |
| 283 | /// Returns true iff we are currently connected to the device. |
| 284 | async fn is_connected(&self) -> Result<bool>; |