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

Method adapters

src/bluez/manager.rs:23–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

21 type Adapter = Adapter;
22
23 async fn adapters(&self) -> Result<Vec<Adapter>> {
24 let adapters = self.session.get_adapters().await?;
25 Ok(adapters
26 .into_iter()
27 .map(|adapter| Adapter::new(self.session.clone(), adapter.id))
28 .collect())
29 }
30}

Callers 5

get_adapterFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
get_centralFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected