pub struct AndroidDebugBridge { /* private fields */ }Implementations§
Source§impl AndroidDebugBridge
impl AndroidDebugBridge
pub fn new() -> Self
pub fn with_path(adb_path: impl Into<PathBuf>) -> Self
pub fn list_devices(&self) -> Result<Vec<AndroidDevice>>
pub fn resolve_device(&self, serial: Option<&str>) -> Result<AndroidDevice>
pub fn screenshot(&self, serial: &str) -> Result<Vec<u8>>
pub fn launch_app(&self, serial: &str, package_name: &str) -> Result<()>
pub fn terminate_app(&self, serial: &str, package_name: &str) -> Result<()>
pub fn open_url(&self, serial: &str, url: &str) -> Result<()>
pub fn tap(&self, serial: &str, x: i32, y: i32) -> Result<()>
pub fn type_text(&self, serial: &str, text: &str) -> Result<()>
pub fn swipe( &self, serial: &str, x1: i32, y1: i32, x2: i32, y2: i32, duration_ms: u32, ) -> Result<()>
pub fn install_androidkit(&self, serial: &str, apk_path: &Path) -> Result<()>
pub async fn start_androidkit(&self, serial: &str) -> Result<()>
pub fn stop_androidkit(&self, serial: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for AndroidDebugBridge
impl Clone for AndroidDebugBridge
Source§fn clone(&self) -> AndroidDebugBridge
fn clone(&self) -> AndroidDebugBridge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AndroidDebugBridge
impl Debug for AndroidDebugBridge
Auto Trait Implementations§
impl Freeze for AndroidDebugBridge
impl RefUnwindSafe for AndroidDebugBridge
impl Send for AndroidDebugBridge
impl Sync for AndroidDebugBridge
impl Unpin for AndroidDebugBridge
impl UnsafeUnpin for AndroidDebugBridge
impl UnwindSafe for AndroidDebugBridge
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