Enum cobs::DecodeResult
source · 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.
Auto Trait Implementations§
impl Freeze for DecodeResult
impl RefUnwindSafe for DecodeResult
impl Send for DecodeResult
impl Sync for DecodeResult
impl Unpin for DecodeResult
impl UnwindSafe for DecodeResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more