Rollup merge of #45151 - Pirh:stdio_default_docs, r=frewsxcv
Document defaults for stdin, stdout, and stderr methods of Command For #29370
This commit is contained in:
commit
18f289559e
1 changed files with 18 additions and 0 deletions
|
@ -552,6 +552,12 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard input (stdin) handle.
|
/// Configuration for the child process's standard input (stdin) handle.
|
||||||
///
|
///
|
||||||
|
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||||
|
/// defaults to [`piped`] when used with `output`.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
@ -572,6 +578,12 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard output (stdout) handle.
|
/// Configuration for the child process's standard output (stdout) handle.
|
||||||
///
|
///
|
||||||
|
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||||
|
/// defaults to [`piped`] when used with `output`.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
@ -592,6 +604,12 @@ impl Command {
|
||||||
|
|
||||||
/// Configuration for the child process's standard error (stderr) handle.
|
/// Configuration for the child process's standard error (stderr) handle.
|
||||||
///
|
///
|
||||||
|
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
|
||||||
|
/// defaults to [`piped`] when used with `output`.
|
||||||
|
///
|
||||||
|
/// [`inherit`]: struct.Stdio.html#method.inherit
|
||||||
|
/// [`piped`]: struct.Stdio.html#method.piped
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue