pub struct EnvironmentSpec {Show 14 fields
pub environment_id: ExecutionEnvironmentId,
pub kind: ExecutionEnvironmentKind,
pub requirement: IsolationRequirement,
pub image: Option<ImageRequest>,
pub rootfs: Option<RootfsRequest>,
pub resources: ResourceLimits,
pub filesystem: FilesystemIsolationPolicy,
pub network: NetworkIsolationPolicy,
pub secrets: SecretExposurePolicy,
pub lifecycle: EnvironmentLifecyclePolicy,
pub ownership: ProcessOwnershipPolicy,
pub accepted_adapters: Vec<IsolationAdapterRequirement>,
pub io_policy: ProcessIoPolicy,
pub stats_policy: ProcessStatsPolicy,
}Expand description
Describes the environment 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§
§environment_id: ExecutionEnvironmentIdStable environment id used for typed lineage, lookup, or dedupe.
kind: ExecutionEnvironmentKindKind/category for this record, capability, event, or detected resource.
requirement: IsolationRequirementRequirement used by this record or request.
image: Option<ImageRequest>Optional image value. When absent, callers should use the documented default or skip that optional behavior.
rootfs: Option<RootfsRequest>Optional rootfs value. When absent, callers should use the documented default or skip that optional behavior.
resources: ResourceLimitsResources used by this record or request.
filesystem: FilesystemIsolationPolicyFilesystem used by this record or request.
network: NetworkIsolationPolicyWhether the request asks for network access. Host sandbox policy is still authoritative.
secrets: SecretExposurePolicySecrets used by this record or request.
lifecycle: EnvironmentLifecyclePolicyLifecycle used by this record or request.
ownership: ProcessOwnershipPolicyOwnership used by this record or request.
accepted_adapters: Vec<IsolationAdapterRequirement>Collection of accepted adapters values. Ordering and membership should be treated as part of the serialized contract when relevant.
io_policy: ProcessIoPolicyIo policy used by this record or request.
stats_policy: ProcessStatsPolicyStats policy used by this record or request.
Trait Implementations§
Source§impl Clone for EnvironmentSpec
impl Clone for EnvironmentSpec
Source§fn clone(&self) -> EnvironmentSpec
fn clone(&self) -> EnvironmentSpec
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 EnvironmentSpec
impl Debug for EnvironmentSpec
Source§impl<'de> Deserialize<'de> for EnvironmentSpec
impl<'de> Deserialize<'de> for EnvironmentSpec
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>,
impl Eq for EnvironmentSpec
Source§impl PartialEq for EnvironmentSpec
impl PartialEq for EnvironmentSpec
Source§fn eq(&self, other: &EnvironmentSpec) -> bool
fn eq(&self, other: &EnvironmentSpec) -> bool
self and other values to be equal, and is used by ==.