Struct market::process::Process[][src]

pub struct Process<I: DisassembleInto<u8>, O: AssembleFrom<u8>, E: AssembleFrom<u8>> { /* fields omitted */ }

Represents a process with piped stdio's.

stdin is written to by producing to the process. stdout is read by consuming from the process. stderr is read by consuming from Process::stderr().

Implementations

impl<I: DisassembleInto<u8>, O: AssembleFrom<u8>, E: AssembleFrom<u8>> Process<I, O, E>[src]

pub fn new(mut command: Command) -> Result<Self, CreateProcessError>[src]

Creates a new Process that exectues command.

pub fn input(&self) -> &Writer<I>[src]

Returns the Writer of the stdin pipe.

pub fn output(&self) -> &Reader<O>[src]

Returns the Reader of the stdout pipe.

pub fn error(&self) -> &Reader<E>[src]

Returns the [Reader} of the stderr pipe.

Trait Implementations

impl<I: DisassembleInto<u8>, O: AssembleFrom<u8>, E: AssembleFrom<u8>> Consumer for Process<I, O, E>[src]

type Good = ExitStatus

The item being consumed.

type Failure = ConsumeFailure<WaitFault>

Describes a failure to successfully complete consumption.

impl<I: Debug + DisassembleInto<u8>, O: Debug + AssembleFrom<u8>, E: Debug + AssembleFrom<u8>> Debug for Process<I, O, E>[src]

Auto Trait Implementations

impl<I, O, E> !RefUnwindSafe for Process<I, O, E>[src]

impl<I, O, E> Send for Process<I, O, E> where
    E: Send,
    I: Send,
    O: Send
[src]

impl<I, O, E> !Sync for Process<I, O, E>[src]

impl<I, O, E> Unpin for Process<I, O, E> where
    E: Unpin,
    I: Unpin,
    O: Unpin
[src]

impl<I, O, E> !UnwindSafe for Process<I, O, E>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<P, C> AssembleInto<C> for P where
    C: AssembleFrom<P>, 
[src]

type Error = <C as AssembleFrom<P>>::Error

Describes an error with the parts. Read more

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

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

impl<P, C> DisassembleInto<P> for C where
    P: DisassembleFrom<C>, 
[src]

type Error = <P as DisassembleFrom<C>>::Error

Describes an error that prevents disassembly.

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.