(
&self,
characteristic: JUuid<'a, 'b>,
uuid: JUuid<'a, 'b>,
data: JObject<'a>,
)
| 372 | } |
| 373 | |
| 374 | pub fn write_descriptor( |
| 375 | &self, |
| 376 | characteristic: JUuid<'a, 'b>, |
| 377 | uuid: JUuid<'a, 'b>, |
| 378 | data: JObject<'a>, |
| 379 | ) -> Result<JFuture<'a, 'b>> { |
| 380 | let future_obj = self |
| 381 | .env |
| 382 | .call_method_unchecked( |
| 383 | self.internal, |
| 384 | self.write_descriptor, |
| 385 | JavaType::Object("Lio/github/gedgygedgy/rust/future/Future;".to_string()), |
| 386 | &[characteristic.into(), uuid.into(), data.into()], |
| 387 | )? |
| 388 | .l()?; |
| 389 | JFuture::from_env(self.env, future_obj) |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | pub struct JBluetoothGattService<'a: 'b, 'b> { |
no outgoing calls