pub struct Toolkit;Expand description
Toolkit utilities for device discovery and configuration.
Implementations§
Source§impl Toolkit
impl Toolkit
Sourcepub fn init_option(user_path: &str, default_config: &str) -> MaaResult<()>
pub fn init_option(user_path: &str, default_config: &str) -> MaaResult<()>
Initialize MAA framework options.
§Arguments
user_path- Path to user data directorydefault_config- Default configuration JSON string
Sourcepub fn find_adb_devices() -> MaaResult<Vec<AdbDevice>>
pub fn find_adb_devices() -> MaaResult<Vec<AdbDevice>>
Find connected ADB devices.
Scans for all known Android emulators and connected ADB devices.
§Returns
List of discovered ADB devices with their configurations.
Sourcepub fn find_desktop_windows() -> MaaResult<Vec<DesktopWindow>>
pub fn find_desktop_windows() -> MaaResult<Vec<DesktopWindow>>
Auto Trait Implementations§
impl Freeze for Toolkit
impl RefUnwindSafe for Toolkit
impl Send for Toolkit
impl Sync for Toolkit
impl Unpin for Toolkit
impl UnsafeUnpin for Toolkit
impl UnwindSafe for Toolkit
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