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

Method is_connected

src/bluez/peripheral.rs:177–180  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

175 }
176
177 async fn is_connected(&self) -> Result<bool> {
178 let device_info = self.device_info().await?;
179 Ok(device_info.connected)
180 }
181
182 async fn connect(&self) -> Result<()> {
183 self.session.connect(&self.device).await?;

Callers

nothing calls this directly

Calls 1

device_infoMethod · 0.80

Tested by

no test coverage detected