[][src]Struct unix_exec_piper::CmdChain

pub struct CmdChain { /* fields omitted */ }

A command chain is the unit that gets executed. It's basically a parsed form of:

  • ps
  • ls -l
  • cat < in.txt | tee file.txt | wc -l > out.txt & It knows whether it should put the started process(es) in background or in foreground (blocking/waiting when executed).

Implementations

impl CmdChain[src]

pub fn background(&self) -> bool[src]

Getter for background.

pub fn cmds(&self) -> &Vec<BasicCmd>[src]

Getter for cmds.

pub fn length(&self) -> usize[src]

Getter for cmds.len().

Trait Implementations

impl Builder<CmdChain> for CmdChainBuilder[src]

fn build(self) -> CmdChain[src]

Builds a CmdChain-object, if self is valid.

impl Debug for CmdChain[src]

Auto Trait Implementations

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.