adb_client 3.2.0

Rust ADB (Android Debug Bridge) client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    Result,
    models::{ADBCommand, ADBHostCommand},
    server_device::ADBServerDevice,
};

impl ADBServerDevice {
    /// Asks ADB server to switch the connection to either the device or emulator connect to/running on the host.
    /// Will fail if there is more than one such device/emulator available.
    pub fn transport_any(&mut self) -> Result<()> {
        self.connect()?
            .proxy_connection(&ADBCommand::Host(ADBHostCommand::TransportAny), false)
            .map(|_| ())
    }
}