pub enum DecodeResult {
NoData,
DataComplete,
DataContinue(u8),
}
Expand description
DecodeResult
represents the possible non-error outcomes of
pushing an encoded data byte into the DecoderState
state machine
Variants§
NoData
The given input byte did not prompt an output byte, either because the state machine is still idle, or we have just processed a header byte. More data is needed to complete the message.
DataComplete
We have received a complete and well-encoded COBS message. The contents of the associated output buffer may now be used
DataContinue(u8)
The following byte should be appended to the current end of the decoded output buffer. More data is needed to complete the message.