Struct hawkbit::ddi::Update[][src]

pub struct Update { /* fields omitted */ }

A pending update to deploy.

Implementations

impl Update[src]

pub fn download_type(&self) -> Type[src]

Handling for the download part of the provisioning process.

pub fn update_type(&self) -> Type[src]

Handling for the update part of the provisioning process.

pub fn maintenance_window(&self) -> Option<MaintenanceWindow>[src]

If set, the update is part of a maintenance window.

pub fn chunks(&self) -> impl Iterator<Item = Chunk<'_>>[src]

An iterator on all the software chunks of the update.

pub async fn download(
    &self,
    dir: &Path
) -> Result<Vec<DownloadedArtifact>, Error>
[src]

Download all software chunks to the directory defined in dir.

pub async fn send_feedback_with_progress<T: Serialize>(
    &self,
    execution: Execution,
    finished: Finished,
    progress: T,
    details: Vec<&str>
) -> Result<(), Error>
[src]

Send feedback to server about this update, with custom progress information.

Arguments

  • execution: status of the action execution.
  • finished: defined status of the result. The action will be kept open on the server until the controller on the device reports either Finished::Success or Finished::Failure.
  • progress: progress assumption of the device.
  • details: list of details message information.

pub async fn send_feedback(
    &self,
    execution: Execution,
    finished: Finished,
    details: Vec<&str>
) -> Result<(), Error>
[src]

Send feedback to server about this update.

Same as Update::send_feedback_with_progress but without passing custom progress information about the update.

Trait Implementations

impl Debug for Update[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.