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

Method adapters

src/winrtble/manager.rs:34–41  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

32 type Adapter = Adapter;
33
34 async fn adapters(&self) -> Result<Vec<Adapter>> {
35 let radios = Radio::GetRadiosAsync()?.into_future().await?;
36 radios
37 .into_iter()
38 .filter(|radio| radio.Kind() == Ok(RadioKind::Bluetooth))
39 .map(|radio| Adapter::new(radio))
40 .collect()
41 }
42}

Callers

nothing calls this directly

Calls 1

into_futureMethod · 0.80

Tested by

no test coverage detected