pub trait ProgressObserver: Sync {
    // Required method
    fn receive_progress(
        &self,
        operation: Option<&str>,
        progress: f32,
        total_size: Option<u64>,
        size_so_far: Option<u64>
    ) -> BoxFuture<'_, ()>;
}
Expand description

The trait for observing progress on the initiated installation.

The StateMachine may pass an implementation of this trait to the Installer, so that it can receive reports of the progress of the installation of the update.

Required Methods§

source

fn receive_progress( &self, operation: Option<&str>, progress: f32, total_size: Option<u64>, size_so_far: Option<u64> ) -> BoxFuture<'_, ()>

Receive progress on the installation.

operation - The current operation of the install (if applicable) progress - 0 to 1 fraction completed. total_size - Maximal size of the download of the install size_so_far - Downloaded data so far (may move forward erratically based on cached or previously downloaded data)

Implementors§