pub struct ShellRequest {
pub argv: Vec<String>,
pub cwd: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub timeout_ms: u64,
pub network: bool,
pub cancel_before_start: bool,
}Expand description
Shell shell request request or result value. Creating the value does not spawn a process; shell executors document policy checks and command side effects.
Fields§
§argv: Vec<String>Command and arguments requested for shell execution. The first element is the executable path/name.
cwd: Option<PathBuf>Working directory requested for command execution; hosts must keep it inside approved bounds.
env: Vec<(String, String)>Environment overrides requested for shell execution. Hosts should treat values as sensitive unless policy says otherwise.
timeout_ms: u64Timeout budget in milliseconds for the requested operation.
network: boolWhether the request asks for network access. Host sandbox policy is still authoritative.
cancel_before_start: boolWhether the shell request should be cancelled before process launch.
Trait Implementations§
Source§impl Clone for ShellRequest
impl Clone for ShellRequest
Source§fn clone(&self) -> ShellRequest
fn clone(&self) -> ShellRequest
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 moreSource§impl Debug for ShellRequest
impl Debug for ShellRequest
Source§impl<'de> Deserialize<'de> for ShellRequest
impl<'de> Deserialize<'de> for ShellRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShellRequest
impl PartialEq for ShellRequest
Source§fn eq(&self, other: &ShellRequest) -> bool
fn eq(&self, other: &ShellRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShellRequest
impl Serialize for ShellRequest
impl Eq for ShellRequest
impl StructuralPartialEq for ShellRequest
Auto Trait Implementations§
impl Freeze for ShellRequest
impl RefUnwindSafe for ShellRequest
impl Send for ShellRequest
impl Sync for ShellRequest
impl Unpin for ShellRequest
impl UnsafeUnpin for ShellRequest
impl UnwindSafe for ShellRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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
Compare self to
key and return true if they are equal.