pub struct ExecutionEnvironmentBuilder { /* private fields */ }Expand description
Describes the execution environment builder 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.
Implementations§
Source§impl ExecutionEnvironmentBuilder
impl ExecutionEnvironmentBuilder
Sourcepub fn environment_id(
self,
environment_id: impl Into<ExecutionEnvironmentId>,
) -> Self
pub fn environment_id( self, environment_id: impl Into<ExecutionEnvironmentId>, ) -> Self
Returns an updated package::isolation value with environment id applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn filesystem(self, filesystem: FilesystemIsolationPolicy) -> Self
pub fn filesystem(self, filesystem: FilesystemIsolationPolicy) -> Self
Returns an updated package::isolation value with filesystem applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn workspace(
self,
workspace_ref: impl Into<String>,
mode: WorkspaceMountMode,
) -> Self
pub fn workspace( self, workspace_ref: impl Into<String>, mode: WorkspaceMountMode, ) -> Self
Returns an updated package::isolation value with workspace applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn network(self, network: NetworkIsolationPolicy) -> Self
pub fn network(self, network: NetworkIsolationPolicy) -> Self
Returns an updated package::isolation value with network applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn secrets(self, secrets: SecretExposurePolicy) -> Self
pub fn secrets(self, secrets: SecretExposurePolicy) -> Self
Returns an updated package::isolation value with secrets applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn ephemeral(self) -> Self
pub fn ephemeral(self) -> Self
Returns an updated package::isolation value with ephemeral applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn source(self, source: SourceRef) -> Self
pub fn source(self, source: SourceRef) -> Self
Returns an updated package::isolation value with source applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn destination(self, destination: DestinationRef) -> Self
pub fn destination(self, destination: DestinationRef) -> Self
Returns an updated package::isolation value with destination applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn build(self) -> Result<ExecutionEnvironment, AgentError>
pub fn build(self) -> Result<ExecutionEnvironment, AgentError>
Finishes builder validation and returns the configured value. This is data-only unless the surrounding builder explicitly documents adapter or store access.
Trait Implementations§
Source§impl Clone for ExecutionEnvironmentBuilder
impl Clone for ExecutionEnvironmentBuilder
Source§fn clone(&self) -> ExecutionEnvironmentBuilder
fn clone(&self) -> ExecutionEnvironmentBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more