Struct embedded_update::Status
source · [−]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
Trait Implementations
sourceimpl<'de: 'a, 'a> Deserialize<'de> for Status<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Status<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnwindSafe for Status<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more