Skip to main content

ChildInConfig

Trait ChildInConfig 

Source
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§

Required Methods§

Source

fn configure_stdin(&mut self, command: &mut TokioCommand) -> Result<()>

Configure the standard input using this config

Source

fn take(self, child: &mut TokioChild) -> Result<Self::Task>

Take the bits needed for this in config from the child

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§