pub struct AdbControllerBuilder { /* private fields */ }Expand description
Builder for ADB controller configuration.
Provides a fluent API for configuring ADB controllers with sensible defaults.
Implementations§
Source§impl AdbControllerBuilder
impl AdbControllerBuilder
Sourcepub fn new(adb_path: &str, address: &str) -> Self
pub fn new(adb_path: &str, address: &str) -> Self
Create a new builder with required ADB path and device address.
Sourcepub fn screencap_methods(self, methods: MaaAdbScreencapMethod) -> Self
pub fn screencap_methods(self, methods: MaaAdbScreencapMethod) -> Self
Set the screencap methods to use.
Sourcepub fn input_methods(self, methods: MaaAdbInputMethod) -> Self
pub fn input_methods(self, methods: MaaAdbInputMethod) -> Self
Set the input methods to use.
Sourcepub fn agent_path(self, path: &str) -> Self
pub fn agent_path(self, path: &str) -> Self
Set the path to MaaAgentBinary.
Sourcepub fn build(self) -> MaaResult<Controller>
pub fn build(self) -> MaaResult<Controller>
Build the controller with the configured options.
Auto Trait Implementations§
impl Freeze for AdbControllerBuilder
impl RefUnwindSafe for AdbControllerBuilder
impl Send for AdbControllerBuilder
impl Sync for AdbControllerBuilder
impl Unpin for AdbControllerBuilder
impl UnwindSafe for AdbControllerBuilder
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