pub struct ProcessOwnershipPolicy {
pub child_artifact_id: ChildArtifactId,
pub owner_run_id: RunId,
pub ownership_class: ProcessOwnershipClass,
pub on_parent_cancel: ChildShutdownBehavior,
pub on_parent_complete: ChildShutdownBehavior,
pub detach_policy: DetachPolicy,
pub reclaim_policy: ReclaimPolicy,
}Expand description
Describes the process ownership policy portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§child_artifact_id: ChildArtifactIdStable child artifact id used for typed lineage, lookup, or dedupe.
owner_run_id: RunIdStable owner run id used for typed lineage, lookup, or dedupe.
ownership_class: ProcessOwnershipClassClassification value for ownership class. Policy and projection paths use it for finite routing decisions.
on_parent_cancel: ChildShutdownBehaviorOn parent cancel used by this record or request.
on_parent_complete: ChildShutdownBehaviorOn parent complete used by this record or request.
detach_policy: DetachPolicyDetach policy used by this record or request.
reclaim_policy: ReclaimPolicyReclaim policy used by this record or request.
Implementations§
Source§impl ProcessOwnershipPolicy
impl ProcessOwnershipPolicy
Sourcepub fn agent_owned(owner_run_id: RunId) -> Self
pub fn agent_owned(owner_run_id: RunId) -> Self
Returns an updated package::isolation value with agent owned applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for ProcessOwnershipPolicy
impl Clone for ProcessOwnershipPolicy
Source§fn clone(&self) -> ProcessOwnershipPolicy
fn clone(&self) -> ProcessOwnershipPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcessOwnershipPolicy
impl Debug for ProcessOwnershipPolicy
Source§impl<'de> Deserialize<'de> for ProcessOwnershipPolicy
impl<'de> Deserialize<'de> for ProcessOwnershipPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ProcessOwnershipPolicy
impl PartialEq for ProcessOwnershipPolicy
Source§fn eq(&self, other: &ProcessOwnershipPolicy) -> bool
fn eq(&self, other: &ProcessOwnershipPolicy) -> bool
self and other values to be equal, and is used by ==.