Trait StandardError

Source
pub trait StandardError<'a>: Control + 'a {
    // Required method
    fn standard_error(&mut self) -> &mut ChildStderr;

    // Provided methods
    fn framed_stderr<D, Item>(
        &mut self,
        decoder: D,
    ) -> FramedRead<&mut ChildStderr, D>
       where D: Decoder<Item = Item> { ... }
    fn capture_stderr<D, Item>(
        self,
        decoder: D,
    ) -> Capture<'a, Self, D, ChildStderr, Item>
       where D: Decoder<Item = Item> { ... }
}
Expand description

Access the standard error output of a running Process

Required Methods§

Source

fn standard_error(&mut self) -> &mut ChildStderr

get access to the standard output

Provided Methods§

Source

fn framed_stderr<D, Item>( &mut self, decoder: D, ) -> FramedRead<&mut ChildStderr, D>
where D: Decoder<Item = Item>,

Source

fn capture_stderr<D, Item>( self, decoder: D, ) -> Capture<'a, Self, D, ChildStderr, Item>
where D: Decoder<Item = Item>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> StandardError<'a> for Process

Source§

impl<'a, C, D, Item> StandardError<'a> for Capture<'a, C, D, ChildStdout, Item>
where C: StandardError<'a>, D: 'a, Item: 'a,

Source§

impl<'a, C, E, Item> StandardError<'a> for SendStdin<'a, C, E, Item>
where C: StandardError<'a>, E: 'a, Item: 'a,