diff options
author | Geoff Shannon <geoffpshannon@gmail.com> | 2020-05-14 07:51:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 16:51:55 +0200 |
commit | b44ab273597d3757b5b50eed95c4f8890fa54e42 (patch) | |
tree | 34192a726cd72679bead33376d2f8bed86d67f26 /tokio/src/process | |
parent | 02661ba30aed5d02e142212a323103d1bf84557b (diff) |
docs: improve discoverability of codec module (#2523)
Diffstat (limited to 'tokio/src/process')
-rw-r--r-- | tokio/src/process/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index 72315112..ab3dae18 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -6,6 +6,8 @@ //! variants) return "future aware" types that interoperate with Tokio. The asynchronous process //! support is provided through signal handling on Unix and system APIs on Windows. //! +//! [`std::process::Command`]: std::process::Command +//! //! # Examples //! //! Here's an example program which will spawn `echo hello world` and then wait @@ -140,6 +142,9 @@ use std::task::Poll; /// [output](Command::output). /// /// `Command` uses asynchronous versions of some `std` types (for example [`Child`]). +/// +/// [`std::process::Command`]: std::process::Command +/// [`Child`]: struct@Child #[derive(Debug)] pub struct Command { std: StdCommand, @@ -171,7 +176,7 @@ impl Command { /// The search path to be used may be controlled by setting the /// `PATH` environment variable on the Command, /// but this has some implementation limitations on Windows - /// (see issue rust-lang/rust#37519). + /// (see issue [rust-lang/rust#37519]). /// /// # Examples /// @@ -181,6 +186,8 @@ impl Command { /// use tokio::process::Command; /// let command = Command::new("sh"); /// ``` + /// + /// [rust-lang/rust#37519]: https://github.com/rust-lang/rust/issues/37519 pub fn new<S: AsRef<OsStr>>(program: S) -> Command { Self::from(StdCommand::new(program)) } |