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

Function get_class

src/droidplug/jni_utils/classcache.rs:17–22  ·  view source on GitHub ↗
(classname: &str)

Source from the content-addressed store, hash-verified

15}
16
17pub fn get_class(classname: &str) -> Option<GlobalRef> {
18 let cache = CLASSCACHE.get_or_init(|| DashMap::new());
19 cache
20 .get(classname)
21 .and_then(|pair| Some(pair.value().clone()))
22}

Callers 9

start_scanMethod · 0.85
get_poll_resultFunction · 0.85
fn_adapterFunction · 0.85
from_envMethod · 0.85
from_envMethod · 0.85
wakerFunction · 0.85
from_envMethod · 0.85
from_env_implMethod · 0.85
newMethod · 0.85

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected