pub struct IsolatedProcessSpec {Show 13 fields
pub process_id: IsolatedProcessId,
pub argv: Vec<String>,
pub cwd: String,
pub env: Vec<RedactedEnvVar>,
pub user: Option<String>,
pub terminal_mode: TerminalMode,
pub timeout_ms: u64,
pub rlimits: ResourceLimits,
pub stdin: StdinPolicy,
pub stdout_policy: ProcessIoCapturePolicy,
pub stderr_policy: ProcessIoCapturePolicy,
pub stats_policy: ProcessStatsPolicy,
pub ownership: ProcessOwnershipPolicy,
}Expand description
Describes the isolated process spec 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§
§process_id: IsolatedProcessIdStable process id used for typed lineage, lookup, or dedupe.
argv: Vec<String>Command and arguments requested for shell execution. The first element is the executable path/name.
cwd: StringWorking directory requested for command execution; hosts must keep it inside approved bounds.
env: Vec<RedactedEnvVar>Environment overrides requested for shell execution. Hosts should treat values as sensitive unless policy says otherwise.
user: Option<String>Optional user value. When absent, callers should use the documented default or skip that optional behavior.
terminal_mode: TerminalModeTerminal mode used by this record or request.
timeout_ms: u64Timeout budget in milliseconds for the requested operation.
rlimits: ResourceLimitsRlimits used by this record or request.
stdin: StdinPolicyStdin used by this record or request.
stdout_policy: ProcessIoCapturePolicyStdout policy used by this record or request.
stderr_policy: ProcessIoCapturePolicyStderr policy used by this record or request.
stats_policy: ProcessStatsPolicyStats policy used by this record or request.
ownership: ProcessOwnershipPolicyOwnership used by this record or request.
Implementations§
Source§impl IsolatedProcessSpec
impl IsolatedProcessSpec
Sourcepub fn validate(&self) -> Result<(), AgentError>
pub fn validate(&self) -> Result<(), AgentError>
Validates the package::isolation invariants and returns a typed error on failure. Validation is pure and does not perform I/O, dispatch, journal appends, or adapter calls.
Sourcepub fn redacted_summary(&self) -> String
pub fn redacted_summary(&self) -> String
Builds the redacted summary value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn effect_intent(&self, environment: &ExecutionEnvironment) -> EffectIntent
pub fn effect_intent(&self, environment: &ExecutionEnvironment) -> EffectIntent
Returns an updated package::isolation value with effect intent applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for IsolatedProcessSpec
impl Clone for IsolatedProcessSpec
Source§fn clone(&self) -> IsolatedProcessSpec
fn clone(&self) -> IsolatedProcessSpec
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 IsolatedProcessSpec
impl Debug for IsolatedProcessSpec
Source§impl<'de> Deserialize<'de> for IsolatedProcessSpec
impl<'de> Deserialize<'de> for IsolatedProcessSpec
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 IsolatedProcessSpec
impl PartialEq for IsolatedProcessSpec
Source§fn eq(&self, other: &IsolatedProcessSpec) -> bool
fn eq(&self, other: &IsolatedProcessSpec) -> bool
self and other values to be equal, and is used by ==.