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

Method peripheral

src/common/adapter_manager.rs:89–91  ·  view source on GitHub ↗
(&self, id: &PeripheralId)

Source from the content-addressed store, hash-verified

87 }
88
89 pub fn peripheral(&self, id: &PeripheralId) -> Option<PeripheralType> {
90 self.peripherals.get(id).map(|val| val.value().clone())
91 }
92}

Callers 1

mainFunction · 0.45

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected