pub struct FirmwareUpdater<T> where
    T: UpdateService
{ /* private fields */ }
Expand description

The updater process that uses the update service to perform a firmware update check for a device. If the device needs to be updated, the updater will follow the update protocol

Implementations

Create a new instance of the updater with the provided service instance.

Run the firmware update protocol. The update is finished with two outcomes:

  1. The device is in sync, in which case DeviceStatus::Synced is returned.
  2. The device is updated, in which case DeviceStatus::Updated is returned. It is the responsibility of called to reset the device in order to run the new firmware.

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.