Module hawkbit::ddi[][src]

Direct Device Integration API

This module provides API for devices to poll their hawkBit server, upload their configuration and download updates.

Devices would typically create a Client using Client::new and would then regularly call Client::poll checking for updates.

See examples/polling.rs demonstrating how to use it.

Structs

Artifact

A single file part of a Chunk to download.

Chunk

Software chunk of an update.

Client

Direct Device Integration client.

ConfigRequest

A request from the server asking to upload the device configuration.

DownloadedArtifact

A downloaded file part of a Chunk.

Reply

Polling reply from the server

Update

A pending update to deploy.

UpdatePreFetch

A pending update whose details have not been retrieved yet.

Enums

Error

DDI errors

Execution

Sent by the target to the server informing it about the execution state of a pending request, see the DDI API reference for details.

Finished

Status of a pending operation

MaintenanceWindow

Separation of download and installation by defining a maintenance window for the installation.

Mode

Update mode that should be applied when updating target

Type

How the download or update should be processed by the target.