Skip to main content

parse

Function parse 

Source
pub fn parse(i: &[u8]) -> Result<Packet, Err<Error<'_>>>
Expand description

Read a given slice as a packet

This function will return an error if the slice could not be parsed or if the entire slice was not consumed