pub fn read(&mut self, id: StreamId, buf: &mut [u8]) -> Result<Option<usize>, ReadError> {
        Ok(self.streams.read(id, buf)?.map(|(len, more)| {
            self.add_read_credits(id, more);
            len
        }))
    }
/// Read from the given recv stream
Read from the given recv stream
Read from the given recv stream
pub fn read(&mut self, id: StreamId, buf: &mut [u8]) -> Result<Option<usize>, ReadError> {
        Ok(self.streams.read(id, buf)?.map(|(len, more)| {
            self.add_read_credits(id, more);
            len
        }))
    }
pub fn read ( & mut self , id : StreamId , buf : & mut [ u8 ] ) -> Result < Option < usize > , ReadError > { Ok ( self . streams . read ( id , buf ) ? . map ( | ( len , more ) | { self . add_read_credits ( id , more ) ; len } ) ) }
Read from the given recv stream
Read from the given recv stream
&mut self
id
StreamId
buf
&mut [u8]