pub struct AgentWorkspaceEnvironment {
pub environment: ExecutionEnvironment,
pub egress_allowlist: Option<EgressAllowlist>,
}Expand description
Lowered toolkit environment profile.
Fields§
§environment: ExecutionEnvironmentCanonical core execution environment.
egress_allowlist: Option<EgressAllowlist>Optional toolkit egress allowlist that produced the network policy.
Implementations§
Source§impl AgentWorkspaceEnvironment
impl AgentWorkspaceEnvironment
Sourcepub fn environment(&self) -> &ExecutionEnvironment
pub fn environment(&self) -> &ExecutionEnvironment
Returns the canonical core execution environment.
Sourcepub fn into_environment(self) -> ExecutionEnvironment
pub fn into_environment(self) -> ExecutionEnvironment
Consumes this profile into the canonical core execution environment.
Sourcepub fn egress_allowlist(&self) -> Option<&EgressAllowlist>
pub fn egress_allowlist(&self) -> Option<&EgressAllowlist>
Returns the optional egress allowlist that produced the network policy.
Sourcepub fn isolation_snapshot(
&self,
sidecar_id: RuntimePackageSidecarId,
redaction_policy_ref: PolicyRef,
cleanup_policy_ref: PolicyRef,
child_lifecycle_policy_ref: PolicyRef,
) -> IsolationRequirementSnapshot
pub fn isolation_snapshot( &self, sidecar_id: RuntimePackageSidecarId, redaction_policy_ref: PolicyRef, cleanup_policy_ref: PolicyRef, child_lifecycle_policy_ref: PolicyRef, ) -> IsolationRequirementSnapshot
Builds an isolation requirement snapshot for attachment to a RuntimePackage.
Sourcepub fn default_isolation_snapshot(&self) -> IsolationRequirementSnapshot
pub fn default_isolation_snapshot(&self) -> IsolationRequirementSnapshot
Builds an isolation snapshot using conservative toolkit policy refs.
Trait Implementations§
Source§impl Clone for AgentWorkspaceEnvironment
impl Clone for AgentWorkspaceEnvironment
Source§fn clone(&self) -> AgentWorkspaceEnvironment
fn clone(&self) -> AgentWorkspaceEnvironment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentWorkspaceEnvironment
impl RefUnwindSafe for AgentWorkspaceEnvironment
impl Send for AgentWorkspaceEnvironment
impl Sync for AgentWorkspaceEnvironment
impl Unpin for AgentWorkspaceEnvironment
impl UnsafeUnpin for AgentWorkspaceEnvironment
impl UnwindSafe for AgentWorkspaceEnvironment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more