MCPcopy Create free account
hub / github.com/deviceplug/btleplug / result

Method result

src/droidplug/jni_utils/exceptions.rs:93–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 }
92
93 pub fn result(self) -> Result<T, Error> {
94 match (self.try_result, self.catch_result) {
95 (Err(e), _) => Err(e),
96 (Ok(Ok(r)), _) => Ok(r),
97 (Ok(Err(_)), Some(r)) => r,
98 (Ok(Err(e)), None) => Err(e),
99 }
100 }
101}
102
103/// Wrapper for [`JObject`]s that implement

Callers 3

start_scanMethod · 0.80
get_poll_resultFunction · 0.80
test_catchFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_catchFunction · 0.64