pub struct SandboxCommand {
pub program: String,
pub args: Vec<String>,
pub cwd: Option<PathBuf>,
}Expand description
A command to run inside a sandbox.
Fields§
§program: StringProgram to execute; not passed through a shell.
args: Vec<String>Arguments, passed verbatim.
cwd: Option<PathBuf>Working directory inside the sandbox.
Implementations§
Trait Implementations§
Source§impl Clone for SandboxCommand
impl Clone for SandboxCommand
Source§impl Debug for SandboxCommand
impl Debug for SandboxCommand
Source§impl<'de> Deserialize<'de> for SandboxCommand
impl<'de> Deserialize<'de> for SandboxCommand
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
impl Eq for SandboxCommand
Source§impl PartialEq for SandboxCommand
impl PartialEq for SandboxCommand
Source§impl Serialize for SandboxCommand
impl Serialize for SandboxCommand
impl StructuralPartialEq for SandboxCommand
Auto Trait Implementations§
impl Freeze for SandboxCommand
impl RefUnwindSafe for SandboxCommand
impl Send for SandboxCommand
impl Sync for SandboxCommand
impl Unpin for SandboxCommand
impl UnsafeUnpin for SandboxCommand
impl UnwindSafe for SandboxCommand
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,
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
Compare self to
key and return true if they are equal.