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

A 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

Create a Serial instance using the provided transport.

Trait Implementations

The preferred block size to be passed in write.

The expected version type for this device.

The error type.

Future returned by status

Return the status of the currently running firmware.

Future returned by start

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.

Should always be Self

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.