[][src]Struct simctl::launch::Launch

pub struct Launch<'a> { /* fields omitted */ }

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]

Writes stdout to the given path.

pub fn stderr<P>(&mut self, path: &'a P) -> &mut Launch<'a> where
    P: AsRef<Path>, 
[src]

Writes stderr to the given path.

pub fn arg<S>(&mut self, arg: &'a S) -> &mut Launch<'a> where
    S: AsRef<OsStr>, 
[src]

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]

Adds an environment variable that will be made available to the program.

pub fn exec(&mut self) -> Result<()>[src]

Executes the launch.

Trait Implementations

impl<'a> Debug for Launch<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.