Expand some of the std{in,out,err} usages.
This commit is contained in:
@@ -106,15 +106,18 @@ use sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
|
|||||||
pub struct Child {
|
pub struct Child {
|
||||||
handle: imp::Process,
|
handle: imp::Process,
|
||||||
|
|
||||||
/// The handle for writing to the child's stdin, if it has been captured
|
/// The handle for writing to the child's standard input (stdin), if it has
|
||||||
|
/// been captured.
|
||||||
#[stable(feature = "process", since = "1.0.0")]
|
#[stable(feature = "process", since = "1.0.0")]
|
||||||
pub stdin: Option<ChildStdin>,
|
pub stdin: Option<ChildStdin>,
|
||||||
|
|
||||||
/// The handle for reading from the child's stdout, if it has been captured
|
/// The handle for reading from the child's standard output (stdout), if it
|
||||||
|
/// has been captured.
|
||||||
#[stable(feature = "process", since = "1.0.0")]
|
#[stable(feature = "process", since = "1.0.0")]
|
||||||
pub stdout: Option<ChildStdout>,
|
pub stdout: Option<ChildStdout>,
|
||||||
|
|
||||||
/// The handle for reading from the child's stderr, if it has been captured
|
/// The handle for reading from the child's standard error (stderr), if it
|
||||||
|
/// has been captured.
|
||||||
#[stable(feature = "process", since = "1.0.0")]
|
#[stable(feature = "process", since = "1.0.0")]
|
||||||
pub stderr: Option<ChildStderr>,
|
pub stderr: Option<ChildStderr>,
|
||||||
}
|
}
|
||||||
@@ -149,7 +152,7 @@ impl fmt::Debug for Child {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A handle to a child process's stdin.
|
/// A handle to a child process's standard input (stdin).
|
||||||
///
|
///
|
||||||
/// This struct is used in the [`stdin`] field on [`Child`].
|
/// This struct is used in the [`stdin`] field on [`Child`].
|
||||||
///
|
///
|
||||||
@@ -196,7 +199,7 @@ impl fmt::Debug for ChildStdin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A handle to a child process's stdout.
|
/// A handle to a child process's standard output (stdout).
|
||||||
///
|
///
|
||||||
/// This struct is used in the [`stdout`] field on [`Child`].
|
/// This struct is used in the [`stdout`] field on [`Child`].
|
||||||
///
|
///
|
||||||
@@ -546,7 +549,8 @@ impl Command {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration for the child process's stdin handle (file descriptor 0).
|
/// Configuration for the child process's standard input (stdin) handle
|
||||||
|
/// (file descriptor 0).
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -566,7 +570,8 @@ impl Command {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration for the child process's stdout handle (file descriptor 1).
|
/// Configuration for the child process's standard output (stdout) handle
|
||||||
|
/// (file descriptor 1).
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -586,7 +591,8 @@ impl Command {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration for the child process's stderr handle (file descriptor 2).
|
/// Configuration for the child process's standard error (stderr) handle
|
||||||
|
/// (file descriptor 2).
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user