@@ -106,6 +106,10 @@ impl IntoRawHandle for process::ChildStderr {
106106 }
107107}
108108
109+ /// Create a `ChildStdin` from the provided `OwnedHandle`.
110+ ///
111+ /// The provided handle must be asynchronous, as reading and
112+ /// writing from and to it is implemented using asynchronous APIs.
109113#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
110114impl From < OwnedHandle > for process:: ChildStdin {
111115 fn from ( handle : OwnedHandle ) -> process:: ChildStdin {
@@ -115,6 +119,10 @@ impl From<OwnedHandle> for process::ChildStdin {
115119 }
116120}
117121
122+ /// Create a `ChildStdout` from the provided `OwnedHandle`.
123+ ///
124+ /// The provided handle must be asynchronous, as reading and
125+ /// writing from and to it is implemented using asynchronous APIs.
118126#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
119127impl From < OwnedHandle > for process:: ChildStdout {
120128 fn from ( handle : OwnedHandle ) -> process:: ChildStdout {
@@ -124,6 +132,10 @@ impl From<OwnedHandle> for process::ChildStdout {
124132 }
125133}
126134
135+ /// Create a `ChildStderr` from the provided `OwnedHandle`.
136+ ///
137+ /// The provided handle must be asynchronous, as reading and
138+ /// writing from and to it is implemented using asynchronous APIs.
127139#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
128140impl From < OwnedHandle > for process:: ChildStderr {
129141 fn from ( handle : OwnedHandle ) -> process:: ChildStderr {
0 commit comments