pub struct AdbTools { /* private fields */ }Implementations§
Source§impl 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 Freeze for AdbTools
impl RefUnwindSafe for AdbTools
impl Send for AdbTools
impl Sync for AdbTools
impl Unpin for AdbTools
impl UnwindSafe for AdbTools
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more