pub struct AndroidNativeControllerConfig {
pub library_path: String,
pub screen_resolution: AndroidScreenResolution,
pub display_id: Option<u32>,
pub force_stop: Option<bool>,
}Expand description
Configuration for crate::controller::Controller::new_android_native.
Fields§
§library_path: StringPath to the Android native control unit shared library.
screen_resolution: AndroidScreenResolutionRaw screenshot/touch coordinate resolution exposed by the control unit.
display_id: Option<u32>Target Android display id. Defaults to 0 when omitted by MaaFramework.
force_stop: Option<bool>Whether to force-stop before start_app. Defaults to false when omitted.
Trait Implementations§
Source§impl Clone for AndroidNativeControllerConfig
impl Clone for AndroidNativeControllerConfig
Source§fn clone(&self) -> AndroidNativeControllerConfig
fn clone(&self) -> AndroidNativeControllerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AndroidNativeControllerConfig
impl<'de> Deserialize<'de> for AndroidNativeControllerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AndroidNativeControllerConfig
impl PartialEq for AndroidNativeControllerConfig
Source§fn eq(&self, other: &AndroidNativeControllerConfig) -> bool
fn eq(&self, other: &AndroidNativeControllerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AndroidNativeControllerConfig
impl StructuralPartialEq for AndroidNativeControllerConfig
Auto Trait Implementations§
impl Freeze for AndroidNativeControllerConfig
impl RefUnwindSafe for AndroidNativeControllerConfig
impl Send for AndroidNativeControllerConfig
impl Sync for AndroidNativeControllerConfig
impl Unpin for AndroidNativeControllerConfig
impl UnsafeUnpin for AndroidNativeControllerConfig
impl UnwindSafe for AndroidNativeControllerConfig
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