read_string

Function read_string 

Source
pub async fn read_string<R: AsyncRead + Unpin>(
    reader: &mut R,
    length: usize,
) -> Result<String>
Expand description

Read and return a dynamic length string from a reader which impls AsyncRead.