pub fn decode_control(buf: &[u8]) -> Option<ControlPacket>Expand description
Decode a control datagram. Unknown frame types are length-skipped; a
frame whose declared length runs past the buffer aborts the parse and
returns whatever was decoded up to that point. Returns None only if the
packet is not a control datagram.