pub struct Stdin { /* private fields */ }Expand description
A handle to the standard input stream of a process.
Implementations§
Trait Implementations§
Source§impl Read for Stdin
impl Read for Stdin
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read.
Source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), AxError>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), AxError>
Read the exact number of bytes required to fill
buf.Source§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), AxError>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), AxError>
Pull some bytes from this source into the specified buffer. Read more
Source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), AxError>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), AxError>
Reads the exact number of bytes required to fill
cursor. Read moreSource§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Creates a “by reference” adapter for this instance of
Read. Read moreAuto Trait Implementations§
impl Freeze for Stdin
impl !RefUnwindSafe for Stdin
impl Send for Stdin
impl Sync for Stdin
impl Unpin for Stdin
impl UnsafeUnpin for Stdin
impl !UnwindSafe for Stdin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more