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§
Sourcefn standard_input(&mut self) -> &mut ChildStdin
fn standard_input(&mut self) -> &mut ChildStdin
get access to the standard input so we can send in data
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>,
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.