canic-host 0.110.38

Host-side App build and desired-state Fleet reconciliation library for Canic workspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Passive observations supplied by the transport to the Component workflow.

use crate::component_operation::model::{ComponentAuthorityRecord, ComponentProgressRecord};

/// Fresh authority and available Root capacity; neither authorizes mutation alone.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ComponentObservation {
    pub authority: ComponentAuthorityRecord,
    pub ready_assets: u32,
}

/// Current progress for the original operation, already correlated by transport.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ComponentProgressObservation {
    pub progress: Option<ComponentProgressRecord>,
}