pub fn extract_frame( buf: &[u8], pdu_len: usize, ) -> Result<Option<DecodedFrame<'_>>, Error>
Extract a PDU frame out of a buffer.