(
&self,
f: impl FnOnce(&JNIEnv, JPeripheral) -> std::result::Result<T, E>,
)
| 193 | } |
| 194 | |
| 195 | fn with_obj<T, E>( |
| 196 | &self, |
| 197 | f: impl FnOnce(&JNIEnv, JPeripheral) -> std::result::Result<T, E>, |
| 198 | ) -> std::result::Result<T, E> |
| 199 | where |
| 200 | E: From<::jni::errors::Error>, |
| 201 | { |
| 202 | let env = global_jvm().get_env()?; |
| 203 | let obj = JPeripheral::from_env(&env, self.internal.as_obj())?; |
| 204 | f(&env, obj) |
| 205 | } |
| 206 | |
| 207 | async fn set_characteristic_notification( |
| 208 | &self, |
no test coverage detected