File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,8 @@ pub(crate) mod copy;
338
338
mod cursor;
339
339
mod error;
340
340
mod impls;
341
- #[ unstable( feature = "annoymous_pipe" , issue = "" ) ]
341
+ /// Annoymous pipe implementation
342
+ #[ unstable( feature = "annoymous_pipe" , issue = "127154" ) ]
342
343
pub mod pipe;
343
344
pub mod prelude;
344
345
mod stdio;
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ pub fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
12
12
}
13
13
}
14
14
15
+ /// Read end of the annoymous pipe.
15
16
#[ derive( Debug ) ]
16
17
pub struct PipeReader ( AnonPipe ) ;
17
18
19
+ /// Write end of the annoymous pipe.
18
20
#[ derive( Debug ) ]
19
21
pub struct PipeWriter ( AnonPipe ) ;
20
22
23
+ /// The owned fd provided is not a pipe.
24
+ #[ derive( Debug ) ]
21
25
pub struct NotAPipeError ;
22
26
23
27
impl PipeReader {
@@ -174,7 +178,7 @@ mod windows {
174
178
175
179
#[ inline]
176
180
pub ( super ) fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
177
- anon_pipe ( true , false ) . map ( |Pipes { ours, their } | ( PipeReader ( ours) , PipeWrite ( theirs) ) )
181
+ anon_pipe ( true , false ) . map ( |Pipes { ours, theirs } | ( PipeReader ( ours) , PipeWriter ( theirs) ) )
178
182
}
179
183
180
184
macro_rules! impl_traits {
You can’t perform that action at this time.
0 commit comments