Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header(datagram: &[u8]) -> Result<GvspHeader, GvspError>
Expand description

Parse only the header of a GVSP datagram.

What a packet that carries nothing else needs: a device answering a resend request it cannot serve sends a bare header with an error status, which parse_packet_ref would refuse as a truncated leader or trailer.