(&self)
| 721 | } |
| 722 | |
| 723 | pub fn get_rssi(&self) -> Result<jint> { |
| 724 | self.env |
| 725 | .call_method_unchecked( |
| 726 | self.internal, |
| 727 | self.get_rssi, |
| 728 | JavaType::Primitive(Primitive::Int), |
| 729 | &[], |
| 730 | )? |
| 731 | .i() |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | impl<'a: 'b, 'b> TryFrom<JScanResult<'a, 'b>> for (BDAddr, Option<PeripheralProperties>) { |