pub struct ShellExecutionPolicy {
pub sandbox_policy_ref: PolicyRef,
pub allow_host_execution: bool,
pub network_enabled: bool,
pub max_timeout_ms: u64,
}Expand description
Shell shell execution policy request or result value. Creating the value does not spawn a process; shell executors document policy checks and command side effects.
Fields§
§sandbox_policy_ref: PolicyRefTyped sandbox policy ref reference. Resolving or executing it is a separate policy-gated step.
allow_host_execution: boolBoolean policy/capability flag for whether allow host execution is enabled.
network_enabled: boolWhether network enabled is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
max_timeout_ms: u64max timeout ms duration in milliseconds.
Implementations§
Source§impl ShellExecutionPolicy
impl ShellExecutionPolicy
Sourcepub fn deny_host_execution() -> Self
pub fn deny_host_execution() -> Self
Returns an updated value with deny host execution configured. This constructs a policy that denies host shell execution and performs no command execution.
Trait Implementations§
Source§impl Clone for ShellExecutionPolicy
impl Clone for ShellExecutionPolicy
Source§fn clone(&self) -> ShellExecutionPolicy
fn clone(&self) -> ShellExecutionPolicy
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 ShellExecutionPolicy
impl RefUnwindSafe for ShellExecutionPolicy
impl Send for ShellExecutionPolicy
impl Sync for ShellExecutionPolicy
impl Unpin for ShellExecutionPolicy
impl UnsafeUnpin for ShellExecutionPolicy
impl UnwindSafe for ShellExecutionPolicy
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