pub struct CommandExecutorCapabilities {
pub identity: CommandExecutorIdentity,
pub one_shot: bool,
pub pty: bool,
pub sandbox_enforcement: bool,
pub network_enforcement: bool,
pub sandbox: PolicyEnforcementStatus,
pub network: PolicyEnforcementStatus,
pub process_cleanup: PolicyEnforcementStatus,
pub resource_limits: PolicyEnforcementStatus,
pub metadata: RunMetadata,
}Expand description
Executor capability report.
Fields§
§identity: CommandExecutorIdentityExecutor identity.
one_shot: boolWhether non-PTY one-shot command execution is supported.
pty: boolWhether PTY command execution is supported.
sandbox_enforcement: boolWhether the executor can technically enforce sandbox policy.
Prefer CommandExecutorCapabilities::sandbox for new code.
network_enforcement: boolWhether the executor can technically enforce network policy.
Prefer CommandExecutorCapabilities::network for new code.
sandbox: PolicyEnforcementStatusSandbox capability status for restrictive sandbox policies.
network: PolicyEnforcementStatusNetwork capability status for restrictive network policies.
process_cleanup: PolicyEnforcementStatusWhether timeout/cancellation can clean up the full process tree.
resource_limits: PolicyEnforcementStatusResource limit enforcement status beyond wall-time/output limits.
metadata: RunMetadataHost-owned capability metadata.
Implementations§
Source§impl CommandExecutorCapabilities
impl CommandExecutorCapabilities
Sourcepub fn local_process() -> Self
pub fn local_process() -> Self
Capability report for the built-in local executor.
Sourcepub fn enforced(identity: CommandExecutorIdentity) -> Self
pub fn enforced(identity: CommandExecutorIdentity) -> Self
Capability report for a host executor that enforces sandbox and network restrictions.
Trait Implementations§
Source§impl Clone for CommandExecutorCapabilities
impl Clone for CommandExecutorCapabilities
Source§impl Debug for CommandExecutorCapabilities
impl Debug for CommandExecutorCapabilities
Source§impl<'de> Deserialize<'de> for CommandExecutorCapabilities
impl<'de> Deserialize<'de> for CommandExecutorCapabilities
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 CommandExecutorCapabilities
impl StructuralPartialEq for CommandExecutorCapabilities
Auto Trait Implementations§
impl Freeze for CommandExecutorCapabilities
impl RefUnwindSafe for CommandExecutorCapabilities
impl Send for CommandExecutorCapabilities
impl Sync for CommandExecutorCapabilities
impl Unpin for CommandExecutorCapabilities
impl UnsafeUnpin for CommandExecutorCapabilities
impl UnwindSafe for CommandExecutorCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.