async fn recv(&self, buf: &mut [u8]) -> Result<usize> {
        match self.buffer.read(buf, None).await {
            Ok(n) => Ok(n),
            Err(err) => Err(io::Error::new(io::ErrorKind::Other, err.to_string()).into()),
        }
    }
/// reads a packet of len(p) bytes from the underlying conn
/// that are matched by the associated MuxFunc
reads a packet of len(p) bytes from the underlying conn
that are matched by the associated MuxFunc
reads a packet of len ( p ) bytes from the underlying conn that are matched by the associated MuxFunc
async fn recv(&self, buf: &mut [u8]) -> Result<usize> {
        match self.buffer.read(buf, None).await {
            Ok(n) => Ok(n),
            Err(err) => Err(io::Error::new(io::ErrorKind::Other, err.to_string()).into()),
        }
    }
async fn recv ( & self , buf : & mut [ u8 ] ) -> Result < usize > { match self . buffer . read ( buf , None ) . await { Ok ( n ) => Ok ( n ) , Err ( err ) => Err ( io :: Error :: new ( io :: ErrorKind :: Other , err . to_string ( ) ) . into ( ) ) , } }
reads a packet of len(p) bytes from the underlying conn
that are matched by the associated MuxFunc
reads a packet of len ( p ) bytes from the underlying conn that are matched by the associated MuxFunc
&self
buf
&mut [u8]