A handle to the standard input stream of a process.
Each handle is a shared reference to a global buffer of input data to this
process. A handle can be
lock'd to gain full access to
.lines()). Reads to this handle are otherwise locked with respect
to other reads.
This handle implements the
Read trait, but beware that concurrent reads
Stdin must be executed with care.
Created by the
When operating in a console, the Windows implementation of this stream does not support non-UTF-8 byte sequences. Attempting to read bytes that are not valid UTF-8 will return an error.
Locks this handle to the standard input stream, returning a readable guard.
Locks this handle and reads a line of input, appending it to the specified buffer.
For detailed semantics of this method, see the documentation on
fn read_vectored(&mut self, bufs: &mut [IoSliceMut]) -> Result<usize>[src]
unsafe fn initializer(&self) -> Initializer[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize>[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>[src]
Auto Trait Implementations
impl RefUnwindSafe for Stdin
impl UnwindSafe for Stdin
type Error = Infallible
The type returned in the event of a conversion error.