Enum postcard_cobs::DecodeResult[][src]

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

The following byte should be appended to the current end of the decoded output buffer. More data is needed to complete the message.

Tuple Fields of DataContinue

0: u8

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.