[−][src]Struct simctl::launch::Launch
Builder that can be used to customize the launch of an application.
Implementations
impl<'a> Launch<'a>
[src]
pub fn wait_for_debugger(&mut self, wait: bool) -> &mut Launch<'a>
[src]
Indicates whether the application should wait for a debugger to attach.
pub fn use_pty(&mut self, use_pty: bool) -> &mut Launch<'a>
[src]
Indicates whether the output should be written to a console with PTY.
pub fn stdout<P>(&mut self, path: &'a P) -> &mut Launch<'a> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Writes stdout to the given path.
pub fn stderr<P>(&mut self, path: &'a P) -> &mut Launch<'a> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Writes stderr to the given path.
pub fn arg<S>(&mut self, arg: &'a S) -> &mut Launch<'a> where
S: AsRef<OsStr>,
[src]
S: AsRef<OsStr>,
Adds an argument that will be passed to the program.
pub fn env<K, V>(&mut self, key: K, value: &'a V) -> &mut Launch<'a> where
K: Display,
V: AsRef<OsStr>,
[src]
K: Display,
V: AsRef<OsStr>,
Adds an environment variable that will be made available to the program.
pub fn exec(&mut self) -> Result<()>
[src]
Executes the launch.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Launch<'a>
impl<'a> Send for Launch<'a>
impl<'a> Sync for Launch<'a>
impl<'a> Unpin for Launch<'a>
impl<'a> UnwindSafe for Launch<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,