pub struct ThreeStateModel {
pub application_state: Arc<ApplicationState>,
pub operation_state: Arc<OperationState>,
pub dependency_state: Arc<DependencyState>,
}Expand description
Three-State Model for comprehensive state tracking
Fields§
§application_state: Arc<ApplicationState>Domain-level resource tracking.
operation_state: Arc<OperationState>Execution logging and history.
dependency_state: Arc<DependencyState>Resource relationship graph.
Implementations§
Source§impl ThreeStateModel
impl ThreeStateModel
Sourcepub async fn validate_operation(
&self,
op: &StateModelProposedOperation,
) -> ValidationResult
pub async fn validate_operation( &self, op: &StateModelProposedOperation, ) -> ValidationResult
Validate that a proposed operation is consistent with current state
Sourcepub async fn record_state_change(&self, change: StateChange)
pub async fn record_state_change(&self, change: StateChange)
Record state change from an operation
Sourcepub async fn snapshot(&self) -> StateSnapshot
pub async fn snapshot(&self) -> StateSnapshot
Get a snapshot of current state for validation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreeStateModel
impl !RefUnwindSafe for ThreeStateModel
impl Send for ThreeStateModel
impl Sync for ThreeStateModel
impl Unpin for ThreeStateModel
impl UnsafeUnpin for ThreeStateModel
impl !UnwindSafe for ThreeStateModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more