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

Method is_connected

src/droidplug/peripheral.rs:255–257  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

253 }
254
255 async fn is_connected(&self) -> Result<bool> {
256 self.with_obj(|_env, obj| Ok(obj.is_connected()?))
257 }
258
259 async fn connect(&self) -> Result<()> {
260 let future = self.with_obj(|env, obj| JSendFuture::try_from(obj.connect()?))?;

Callers

nothing calls this directly

Calls 1

with_objMethod · 0.80

Tested by

no test coverage detected