pub struct LaunchArgs {
pub app: String,
pub restart: bool,
pub arguments: Vec<String>,
pub environment: BTreeMap<String, String>,
}Fields§
§app: String§restart: boolQuit the app first, so it starts from its first screen.
arguments: Vec<String>Passed to the app’s process, as after -- in devicectl device process launch.
environment: BTreeMap<String, String>Implementations§
Source§impl LaunchArgs
impl LaunchArgs
pub fn validate(&self) -> Res<()>
Sourcepub fn has_launch_options(&self) -> bool
pub fn has_launch_options(&self) -> bool
Arguments and environment only reach a process that starts now.
pub fn kill_existing(&self) -> bool
Trait Implementations§
Source§impl Debug for LaunchArgs
impl Debug for LaunchArgs
Source§impl Default for LaunchArgs
impl Default for LaunchArgs
Source§impl<'de> Deserialize<'de> for LaunchArgs
impl<'de> Deserialize<'de> for LaunchArgs
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
Auto Trait Implementations§
impl Forget for LaunchArgs
impl Freeze for LaunchArgs
impl Move for LaunchArgs
impl RefUnwindSafe for LaunchArgs
impl Send for LaunchArgs
impl Sync for LaunchArgs
impl Unpin for LaunchArgs
impl UnsafeUnpin for LaunchArgs
impl UnwindSafe for LaunchArgs
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