reader_with_capacity

Function reader_with_capacity 

Source
pub fn reader_with_capacity<R: AsyncRead + Unpin + Send + 'static>(
    reader: R,
    capacity: usize,
) -> Pin<Box<dyn Stream<Item = Result<Vec<u8>, Error>> + Send + 'static>>