pub struct Simulator { /* private fields */ }
Expand description

A simulated device which implements the FirmwareDevice trait.

Implementations

Create a new instance of a simulated device with a given version.

Return the current version of the device.

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.