pub struct SerialDecoder<'a> { /* private fields */ }
Expand description

Decoder for logs sent through a SerialLogger in libpostform. Implements rcobs decoding and detection of start/end of message.

Implementations

Creates a new SerialDecoder instance.

Feeds data to the decoder and accepts an action to trigger every time a message is decoded. This action can then print the logs to stdout or do whatever the user prefers.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.