Struct market::process::Process [−][src]
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.
fn consume(&self) -> Result<Self::Good, Self::Failure>
[src]
fn goods(&self) -> Goods<'_, Self>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn demand(&self) -> Result<Self::Good, <Self::Failure as Failure>::Fault>
[src]
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]
E: Send,
I: Send,
O: Send,
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]
E: Unpin,
I: Unpin,
O: Unpin,
impl<I, O, E> !UnwindSafe for Process<I, O, E>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<P, C> AssembleInto<C> for P where
C: AssembleFrom<P>,
[src]
C: AssembleFrom<P>,
type Error = <C as AssembleFrom<P>>::Error
Describes an error with the parts. Read more
pub fn assemble_into(
parts: &mut Vec<P, Global>
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
[src]
parts: &mut Vec<P, Global>
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
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<P, C> DisassembleInto<P> for C where
P: DisassembleFrom<C>,
[src]
P: DisassembleFrom<C>,
type Error = <P as DisassembleFrom<C>>::Error
Describes an error that prevents disassembly.
pub fn disassemble_into(
self
) -> Result<Vec<P, Global>, <C as DisassembleInto<P>>::Error>
[src]
self
) -> Result<Vec<P, Global>, <C as DisassembleInto<P>>::Error>
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>,