[][src]Struct pete::cmd::Command

pub struct Command { /* fields omitted */ }

Command to spawn as a child process to be traced.

Implementations

impl Command[src]

pub fn new(argv: Vec<impl Into<Vec<u8>>>) -> Result<Self, NulError>[src]

pub fn trace_me(self, trace_me: bool) -> Self[src]

Set the value of the trace_me flag.

pub fn fork_exec(self) -> Result<Pid, Error>[src]

Fork and exec a child process determined by self.argv.

If self.trace_me, the child process will set itself as a tracee of the parent, then raise SIGSTOP so the parent can resume and observe it without a race.

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.