Crate netgauze_parse_utils

Source
Expand description

Traits for Ser/Deser wire protocols

Enums§

ErrorKindSerdeDeref

Traits§

LocatedParsingError
Located Parsing error is the error raised by parsing a given buffer and a reference to the location where it occurred. The offset of the buffer in the Span should refer (as much as possible) to the first byte where the error started
ReadablePdu
Generic trait for Readable Protocol Data Unit that doesn’t need any external input while parsing the packet.
ReadablePduWithOneInput
Generic trait Readable Protocol Data Unit that does need a single external input
ReadablePduWithThreeInputs
Generic trait for Readable Protocol Data Unit that does need three external inputs
ReadablePduWithTwoInputs
Generic trait for Readable Protocol Data Unit that does need two external inputs
WritablePdu
Generic trait for Writable Protocol Data Unit that doesn’t need any external input while writing the packet.
WritablePduWithOneInput
Generic trait for Writable Protocol Data Unit that doesn’t need any external input while writing the packet.
WritablePduWithTwoInputs
Generic trait for Writable Protocol Data Unit that doesn’t need any external input while writing the packet.

Functions§

parse_into_located
parse_into_located_one_input
parse_into_located_three_inputs
parse_into_located_two_inputs
parse_till_empty
Keep repeating the parser till the buf is empty
parse_till_empty_into_located
Keep repeating the parser till the buf is empty
parse_till_empty_into_with_one_input_located
Keep repeating the parser till the buf is empty
parse_till_empty_into_with_three_inputs_located
Keep repeating the parser till the buf is empty
parse_till_empty_into_with_two_inputs_located
Keep repeating the parser till the buf is empty
parse_till_empty_with_one_input
Keep repeating the parser till the buf is empty

Type Aliases§

Span