Skip to main content

pooled_read

Function pooled_read 

Source
pub async fn pooled_read(
    rdr: impl AsyncRead,
    limit: usize,
) -> Result<Option<Bytes>>
Expand description

Reads from rdr into a thread-local buffer, returning the bytes read.

Ok(None) indicates EOF.