pub async fn pooled_read_callback<T>(
rdr: impl AsyncRead,
limit: usize,
resolve: impl FnMut(&[u8]) -> T,
) -> Result<Option<T>, Error>Expand description
Read an async reader into a buffer, but instead of allocating memory, call a callback.
An empty return value indicates EOF.