pub struct ExecOptions {
pub env: Vec<String>,
pub workdir: Option<String>,
pub sudo: Option<bool>,
}Expand description
Options for executing a command in a sandbox.
Fields§
§env: Vec<String>Environment variables (KEY=VALUE).
workdir: Option<String>Working directory inside the container.
sudo: Option<bool>Run as root (maps to --sudo on CLI).
Trait Implementations§
Source§impl Debug for ExecOptions
impl Debug for ExecOptions
Source§impl Default for ExecOptions
impl Default for ExecOptions
Source§fn default() -> ExecOptions
fn default() -> ExecOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecOptions
impl RefUnwindSafe for ExecOptions
impl Send for ExecOptions
impl Sync for ExecOptions
impl Unpin for ExecOptions
impl UnwindSafe for ExecOptions
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