refactor(client): make terminal target outcomes authoritative

This commit is contained in:
Nils Andreas Svee committed 2026-10-04 21:48:20 +07:00
1 parent 784ce77354
commit 2cd8a7d60d
4 files changed
+82 -25

No files matched your search

+6
View File
@@ -141,6 +141,12 @@ pub struct ManagedTargetStatus {
pub target: TargetInstance,
pub desired: bool,
pub lifecycle: ManagedTargetLifecycle,
/// Authoritative completed accounting for this target generation.
///
/// Present if and only if `lifecycle` is [`ManagedTargetLifecycle::Terminal`].
/// This shares the terminal phase's outcome with [`ManagedEvent::TargetFinished`],
/// so terminal details remain durable even when presentation events are lost.
pub outcome: Option<Arc<ManagedTargetOutcome>>,
pub server_addr: Arc<str>,
pub remote: Option<SocketAddr>,
}