pub struct Status<'a> {
    pub version: Bytes<'a>,
    pub mtu: Option<u32>,
    pub correlation_id: Option<u32>,
    pub update: Option<UpdateStatus<'a>>,
}
Expand description

Represents the current state of firmware and firmware being written on a device.

Fields

version: Bytes<'a>

The current version of the firmware.

mtu: Option<u32>

The max firmware block size to be sent back. The update service must ensure it does not sent larger blocks.

correlation_id: Option<u32>

A correlation id which the update service will use when sending commands back. Used mainly when you need to multiplex multiple devices (in a gateway).

update: Option<UpdateStatus<'a>>

The status of the firmware being written to a device.

Implementations

Create an initial status update where no firmware have been written yet.

Create a status update containing information about the firmware being written in addition to the existing firmware.

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

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.