pub struct Serial<T> where
    T: Read + Write
{ /* private fields */ }
Expand description

An FirmwareDevice based on a fixed-frame serial protocol, using postcard as the serialization format. Can be used with any transport implementing the embedded-io traits. (TCP, UDP, UART, USB).

Implementations

Trait Implementations

Return the status of the currently running firmware.

Prepare for starting the firmware update process.

Future returned by write

Write a block of firmware at the expected offset.

Future returned by update

Finish the firmware write and mark device to be updated

Future returned by synced

Mark firmware as being in sync with the expected

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.