You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/io/stdin.rs
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
use lazy_static::lazy_static;
1
2
use std::pin::Pin;
2
3
use std::sync::Mutex;
3
4
@@ -134,6 +135,35 @@ impl Stdin {
134
135
})
135
136
.await
136
137
}
138
+
139
+
/// Locks this handle to the standard input stream, returning a readable guard.
140
+
///
141
+
/// The lock is released when the returned lock goes out of scope. The returned guard also implements the Read and BufRead traits for accessing the underlying data.
0 commit comments