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;
338338mod cursor;
339339mod error;
340340mod impls;
341- #[ unstable( feature = "annoymous_pipe" , issue = "" ) ]
341+ /// Annoymous pipe implementation
342+ #[ unstable( feature = "annoymous_pipe" , issue = "127154" ) ]
342343pub mod pipe;
343344pub mod prelude;
344345mod stdio;
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ pub fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
1212 }
1313}
1414
15+ /// Read end of the annoymous pipe.
1516#[ derive( Debug ) ]
1617pub struct PipeReader ( AnonPipe ) ;
1718
19+ /// Write end of the annoymous pipe.
1820#[ derive( Debug ) ]
1921pub struct PipeWriter ( AnonPipe ) ;
2022
23+ /// The owned fd provided is not a pipe.
24+ #[ derive( Debug ) ]
2125pub struct NotAPipeError ;
2226
2327impl PipeReader {
@@ -174,7 +178,7 @@ mod windows {
174178
175179 #[ inline]
176180 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) ) )
178182 }
179183
180184 macro_rules! impl_traits {
You can’t perform that action at this time.
0 commit comments