Skip to main content

read_line

Function read_line 

Source
pub fn read_line<R>(r: &mut R) -> Result<Option<Vec<u8>>, Error>
where R: BufRead,
Expand description

Read one newline-delimited frame. Returns Ok(None) on clean EOF (the peer closed the stream between messages — an orderly shutdown signal). A line longer than MAX_FRAME is an error.