cognos: track activity progress for various goals
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I96a285c1e6f25b7061c61a4013b386ae6a6a6964
This commit is contained in:
parent
58a3d68d22
commit
4a0db12ecb
1 changed files with 13 additions and 0 deletions
|
|
@ -35,6 +35,19 @@ pub enum Verbosity {
|
|||
Vomit = 7,
|
||||
}
|
||||
|
||||
/// Activity progress tracking for downloads/uploads/builds
|
||||
#[derive(Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct ActivityProgress {
|
||||
/// Bytes completed
|
||||
pub done: u64,
|
||||
/// Total bytes expected
|
||||
pub expected: u64,
|
||||
/// Currently running transfers
|
||||
pub running: u64,
|
||||
/// Failed transfers
|
||||
pub failed: u64,
|
||||
}
|
||||
|
||||
pub type Id = u64;
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue