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

Method get_state_clone

src/corebluetooth/future.rs:90–92  ·  view source on GitHub ↗

Returns a clone of the state, used for moving the state across contexts (tasks/threads/etc...).

(&self)

Source from the content-addressed store, hash-verified

88 /// Returns a clone of the state, used for moving the state across contexts
89 /// (tasks/threads/etc...).
90 pub fn get_state_clone(&self) -> BtlePlugFutureStateShared<T> {
91 self.waker_state.clone()
92 }
93
94 // TODO Should we implement drop on this, so it'll yell if its dropping and
95 // the waker didn't fire? otherwise it seems like we could have quiet

Callers 12

adapter_stateMethod · 0.80
is_connectedMethod · 0.80
connectMethod · 0.80
disconnectMethod · 0.80
discover_servicesMethod · 0.80
writeMethod · 0.80
readMethod · 0.80
subscribeMethod · 0.80
unsubscribeMethod · 0.80
write_descriptorMethod · 0.80
read_rssiMethod · 0.80
read_descriptorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected