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

Function peripheral_debug

src/corebluetooth/central_delegate.rs:937–947  ·  view source on GitHub ↗
(peripheral: &CBPeripheral)

Source from the content-addressed store, hash-verified

935}
936
937fn peripheral_debug(peripheral: &CBPeripheral) -> String {
938 let uuid = unsafe { peripheral.identifier() }.UUIDString();
939 match unsafe { peripheral.name() } {
940 Some(name) => {
941 format!("CBPeripheral({}, {})", name, uuid)
942 }
943 _ => {
944 format!("CBPeripheral({})", uuid)
945 }
946 }
947}
948
949fn service_debug(service: &CBService) -> String {
950 let uuid = unsafe { service.UUID().UUIDString() };

Callers

nothing calls this directly

Calls 1

nameMethod · 0.80

Tested by

no test coverage detected