Skip to main content

canic_host/component_operation/view/
mod.rs

1//! Passive observations supplied by the transport to the Component workflow.
2
3use crate::component_operation::model::{ComponentAuthorityRecord, ComponentProgressRecord};
4
5/// Fresh authority and available Root capacity; neither authorizes mutation alone.
6#[derive(Clone, Debug, Eq, PartialEq)]
7pub struct ComponentObservation {
8    pub authority: ComponentAuthorityRecord,
9    pub ready_assets: u32,
10}
11
12/// Current progress for the original operation, already correlated by transport.
13#[derive(Clone, Debug, Eq, PartialEq)]
14pub struct ComponentProgressObservation {
15    pub progress: Option<ComponentProgressRecord>,
16}