pub async fn read_frame_info(&mut self) -> io::Result<FrameInfo> {
        loop {
            if let Some(frame) = self.decomp.frame_info() {
                return Ok(frame);
            }
            self.decomp.decode_header_only(true);
            let _ = self.read(&mut []).await?;
            self.decomp.decode_header_only(false);
        }
    }
/// Reads the frame header asynchronously and returns `FrameInfo`.
///
/// Calling this function before any `AsyncRead` or `AsyncBufRead` operations
/// does not consume the frame body.
Reads the frame header asynchronously and returns `FrameInfo`.
Calling this function before any `AsyncRead` or `AsyncBufRead` operations
does not consume the frame body.
Reads the frame header asynchronously and returns ` FrameInfo ` . Calling this function before any ` AsyncRead ` or ` AsyncBufRead ` operations does not consume the frame body .
pub async fn read_frame_info(&mut self) -> io::Result<FrameInfo> {
        loop {
            if let Some(frame) = self.decomp.frame_info() {
                return Ok(frame);
            }
            self.decomp.decode_header_only(true);
            let _ = self.read(&mut []).await?;
            self.decomp.decode_header_only(false);
        }
    }
pub async fn read_frame_info ( & mut self ) -> io :: Result < FrameInfo > { loop { if let Some ( frame ) = self . decomp . frame_info ( ) { return Ok ( frame ) ; } self . decomp . decode_header_only ( true ) ; let _ = self . read ( & mut [ ] ) . await ? ; self . decomp . decode_header_only ( false ) ; } }
Reads the frame header asynchronously and returns `FrameInfo`.
Reads the frame header asynchronously and returns ` FrameInfo ` .
&mut self
&mut self