pub struct ProcessParams { /* private fields */ }Expand description
Parameters for the process.
Implementations§
Source§impl ProcessParams
impl ProcessParams
pub fn new( original_command: String, directory: String, runs_in_shell: bool, ) -> Result<ProcessParams, ProcessError>
pub fn set_retries(&mut self, retries: u32)
pub fn set_stop_signal( &mut self, stop_signal: String, ) -> Result<(), ProcessError>
pub fn set_stop_timeout(&mut self, stop_timeout: Duration)
Trait Implementations§
Source§impl Clone for ProcessParams
impl Clone for ProcessParams
Source§fn clone(&self) -> ProcessParams
fn clone(&self) -> ProcessParams
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 moreAuto Trait Implementations§
impl Freeze for ProcessParams
impl !RefUnwindSafe for ProcessParams
impl Send for ProcessParams
impl Sync for ProcessParams
impl Unpin for ProcessParams
impl !UnwindSafe for ProcessParams
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