fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self>
    where
        Self: Unpin,
    {
        read_line(self, buf)
    }
/// Creates a future which will read all the bytes associated with this I/O
/// object into `buf` until a newline (the 0xA byte) or EOF is reached,
/// This method is the async equivalent to [`BufRead::read_line`](std::io::BufRead::read_line).
///
/// This function will read bytes from the underlying stream until the
/// newline delimiter (the 0xA byte) or EOF is found. Once found, all bytes
/// up to, and including, the delimiter (if found) will be appended to
/// `buf`.
///
/// The returned future will resolve to the number of bytes read once the read
/// operation is completed.
///
/// In the case of an error the buffer and the object will be discarded, with
/// the error yielded.
///
/// # Errors
///
/// This function has the same error semantics as [`read_until`] and will
/// also return an error if the read bytes are not valid UTF-8. If an I/O
/// error is encountered then `buf` may contain some bytes already read in
/// the event that all data read so far was valid UTF-8.
///
/// [`read_until`]: AsyncBufReadExt::read_until


This function will read bytes from the underlying stream until the
newline delimiter (the 0xA byte) or EOF is found. Once found, all bytes
up to, and including, the delimiter (if found) will be appended to
`buf`.

The returned future will resolve to the number of bytes read once the read
operation is completed.

In the case of an error the buffer and the object will be discarded, with
the error yielded.
This function will read bytes from the underlying stream until the newline delimiter ( the 0xA byte ) or EOF is found . Once found all bytes up to and including the delimiter ( if found ) will be appended to ` buf ` . The returned future will resolve to the number of bytes read once the read operation is completed . In the case of an error the buffer and the object will be discarded with the error yielded .
fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self>
    where
        Self: Unpin,
    {
        read_line(self, buf)
    }
fn read_line < ' a > ( & ' a mut self , buf : & ' a mut String ) -> ReadLine < ' a , Self > where Self : Unpin , { read_line ( self , buf ) }
Creates a future which will read all the bytes associated with this I/O
object into `buf` until a newline (the 0xA byte) or EOF is reached,
This method is the async equivalent to [`BufRead::read_line`](std::io::BufRead::read_line).
Creates a future which will read all the bytes associated with this I / O object into ` buf ` until a newline ( the 0xA byte ) or EOF is reached This method is the async equivalent to [ ` BufRead :: read_line ` ] ( std :: io :: BufRead :: read_line ) .
&'a mut self
buf
&'a mut String
&'a mut self
buf
&'a mut String
errors
This function has the same error semantics as [`read_until`] and will
also return an error if the read bytes are not valid UTF-8. If an I/O
error is encountered then `buf` may contain some bytes already read in
the event that all data read so far was valid UTF-8.

[`read_until`]: AsyncBufReadExt::read_until
This function has the same error semantics as [ ` read_until ` ] and will also return an error if the read bytes are not valid UTF - 8 . If an I / O error is encountered then ` buf ` may contain some bytes already read in the event that all data read so far was valid UTF - 8 . [ ` read_until ` ] : AsyncBufReadExt :: read_until