Struct android_tools::adb::AdbTools
source · [−]pub struct AdbTools { /* private fields */ }
Implementations
sourceimpl AdbTools
impl AdbTools
pub fn new() -> Self
sourcepub fn install(&mut self, install: &Path) -> &mut Self
pub fn install(&mut self, install: &Path) -> &mut Self
Only push files that are newer on the host than the device
pub fn forward(&mut self, forward: String) -> &mut Self
pub fn connect(&mut self, connect: String) -> &mut Self
pub fn devices(&mut self, devices: bool) -> &mut Self
pub fn devices_l(&mut self, devices_l: bool) -> &mut Self
pub fn kill_server(&mut self, kill_server: bool) -> &mut Self
pub fn tcpip(&mut self, tcpip: String) -> &mut Self
sourcepub fn e(&mut self, e: bool) -> &mut Self
pub fn e(&mut self, e: bool) -> &mut Self
Use TCP/IP device (error if multiple TCP/IP devices available)
sourcepub fn s(&mut self, s: bool) -> &mut Self
pub fn s(&mut self, s: bool) -> &mut Self
Use device with given serial (overrides $ANDROID_SERIAL)
sourcepub fn l(&mut self, l: String) -> &mut Self
pub fn l(&mut self, l: String) -> &mut Self
Listen on given socket for adb server [default=tcp:localhost:5037]
pub fn version(&mut self, version: bool) -> &mut Self
pub fn run(&self) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AdbTools
impl Send for AdbTools
impl Sync for AdbTools
impl Unpin for AdbTools
impl UnwindSafe for AdbTools
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more