(&self)
| 531 | } |
| 532 | |
| 533 | pub fn get_descriptors(&self) -> Result<Vec<JBluetoothGattDescriptor>> { |
| 534 | let obj = self |
| 535 | .env |
| 536 | .call_method_unchecked( |
| 537 | self.internal, |
| 538 | self.get_descriptors, |
| 539 | JavaType::Object("Ljava/util/List;".to_string()), |
| 540 | &[], |
| 541 | )? |
| 542 | .l()?; |
| 543 | let desc_list = JList::from_env(self.env, obj)?; |
| 544 | let mut desc_vec = vec![]; |
| 545 | for desc in desc_list.iter()? { |
| 546 | desc_vec.push(JBluetoothGattDescriptor::from_env(self.env, desc)?); |
| 547 | } |
| 548 | Ok(desc_vec) |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | pub struct JBluetoothGattDescriptor<'a: 'b, 'b> { |
no test coverage detected