Struct hawkbit::ddi::Update [−][src]
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]
&self,
dir: &Path
) -> Result<Vec<DownloadedArtifact>, Error>
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]
&self,
execution: Execution,
finished: Finished,
progress: T,
details: Vec<&str>
) -> Result<(), Error>
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 eitherFinished::Success
orFinished::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]
&self,
execution: Execution,
finished: Finished,
details: Vec<&str>
) -> Result<(), Error>
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
Auto Trait Implementations
impl !RefUnwindSafe for Update
[src]
impl Send for Update
[src]
impl Sync for Update
[src]
impl Unpin for Update
[src]
impl !UnwindSafe for Update
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,