Trait StandardInput

Source
pub trait StandardInput<'a>: Control + 'a {
    // Required method
    fn standard_input(&mut self) -> &mut ChildStdin;

    // Provided methods
    fn framed_stdin<E, Item>(
        &mut self,
        encoder: E,
    ) -> FramedWrite<&mut ChildStdin, E>
       where E: Encoder<Item = Item> { ... }
    fn send_stdin<E, Item>(self, encoder: E) -> SendStdin<'a, Self, E, Item>
       where E: Encoder<Item = Item> { ... }
}
Expand description

Access the standard input of a running Process

Required Methods§

Source

fn standard_input(&mut self) -> &mut ChildStdin

get access to the standard input so we can send in data

Provided Methods§

Source

fn framed_stdin<E, Item>( &mut self, encoder: E, ) -> FramedWrite<&mut ChildStdin, E>
where E: Encoder<Item = Item>,

Source

fn send_stdin<E, Item>(self, encoder: E) -> SendStdin<'a, Self, E, Item>
where E: Encoder<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> StandardInput<'a> for Process

Source§

impl<'a, C, D, R, Item> StandardInput<'a> for Capture<'a, C, D, R, Item>
where R: AsyncRead, C: StandardInput<'a>, D: 'a, Item: 'a,