Allows encoding of reverse-COBS messages in a streaming fashion, with almost no memory usage (internal state is just one single byte!).
You may use the same Encoder instance to encode multiple messages. In this case, you
will probably want to separate messages with a
0x00, which you have to write manually
after calling end, for example with
Create a new encoder with the given writer.
Mutably borrow the inner writer.
Write a message byte.
Finish encoding a message.
This does NOT write a
0x00 separator byte, you must write it yourself
if you so desire.
impl<W> RefUnwindSafe for Encoder<W> where
impl<W> UnwindSafe for Encoder<W> where
type Error = Infallible
The type returned in the event of a conversion error.