pub trait ChildInConfig: Send + 'static {
type Task: ChildInTask;
// Required methods
fn configure_stdin(&mut self, command: &mut TokioCommand) -> Result<()>;
fn take(self, child: &mut TokioChild) -> Result<Self::Task>;
}Available on crate feature
process only.Expand description
Configuration for process input to be used with
Command::stdin
This is essentially a marker, that is used to create tasks
when spawning the child to drive the IO. See ChildInTask
See module documentation for list of available configs
Required Associated Types§
type Task: ChildInTask
Required Methods§
Sourcefn configure_stdin(&mut self, command: &mut TokioCommand) -> Result<()>
fn configure_stdin(&mut self, command: &mut TokioCommand) -> Result<()>
Configure the standard input using this config
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".