fn decode_frame( decoder: &mut FrameDecoder, bytes: BytesMut, ) -> Result<Option<Frame>, Error>
Decodes a frame.
This function is intentionally de-generified and outlined because it is very large.