MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / console_port_from_serial

Function console_port_from_serial

packages/server/src/android.rs:1803–1805  ·  view source on GitHub ↗
(serial: &str)

Source from the content-addressed store, hash-verified

1801}
1802
1803fn console_port_from_serial(serial: &str) -> Option<u16> {
1804 serial.strip_prefix("emulator-")?.parse::<u16>().ok()
1805}
1806
1807fn android_mouse_button_state_for_touch_phase(phase: &str) -> Result<u8, AppError> {
1808 match phase.trim().to_ascii_lowercase().as_str() {

Calls

no outgoing calls

Tested by

no test coverage detected