pub struct CommandOptions {
pub timeout: Option<Duration>,
pub working_dir: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub clear_env: bool,
pub stdin_data: Option<Vec<u8>>,
}Expand description
Options for customizing command execution.
Fields§
§timeout: Option<Duration>Maximum time the command is allowed to run. The child process is killed if it exceeds this duration.
working_dir: Option<PathBuf>Working directory for the command.
env: Vec<(String, String)>Additional environment variables (merged with inherited env).
clear_env: boolIf true, don’t inherit the parent process’s environment.
stdin_data: Option<Vec<u8>>Optional stdin data to pipe to the command.
Trait Implementations§
Source§impl Clone for CommandOptions
impl Clone for CommandOptions
Source§fn clone(&self) -> CommandOptions
fn clone(&self) -> CommandOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandOptions
impl Debug for CommandOptions
Source§impl Default for CommandOptions
impl Default for CommandOptions
Source§fn default() -> CommandOptions
fn default() -> CommandOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnsafeUnpin for CommandOptions
impl UnwindSafe for CommandOptions
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request