pub struct ProcessOptions {
pub command: String,
pub working_directory: Option<String>,
pub env: BTreeMap<String, String>,
pub cancellation: CancellationToken,
}Expand description
Options for running a command.
Fields§
§command: StringShell command line.
working_directory: Option<String>Working directory inside the sandbox.
env: BTreeMap<String, String>Extra environment variables (override the sandbox defaults).
cancellation: CancellationTokenKills the process when triggered.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessOptions
impl Clone for ProcessOptions
Source§fn clone(&self) -> ProcessOptions
fn clone(&self) -> ProcessOptions
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 ProcessOptions
impl RefUnwindSafe for ProcessOptions
impl Send for ProcessOptions
impl Sync for ProcessOptions
impl Unpin for ProcessOptions
impl UnsafeUnpin for ProcessOptions
impl UnwindSafe for ProcessOptions
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