pub struct ShellCaptureOptions<'a> {
pub cwd: Option<PathBuf>,
pub env: Option<HashMap<String, String>>,
pub inherit_env: bool,
pub timeout: Option<f64>,
pub cancel: Option<&'a CancellationToken>,
pub on_chunk: Option<Box<dyn FnMut(&str, &dyn Fn() -> ShellCaptureProgress) + Send + 'a>>,
pub return_execution_errors: bool,
}Expand description
Mirrors ShellCaptureOptions.
Fields§
§cwd: Option<PathBuf>§env: Option<HashMap<String, String>>§inherit_env: bool§timeout: Option<f64>§cancel: Option<&'a CancellationToken>§on_chunk: Option<Box<dyn FnMut(&str, &dyn Fn() -> ShellCaptureProgress) + Send + 'a>>§return_execution_errors: boolTrait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShellCaptureOptions<'a>
impl<'a> !Sync for ShellCaptureOptions<'a>
impl<'a> !UnwindSafe for ShellCaptureOptions<'a>
impl<'a> Freeze for ShellCaptureOptions<'a>
impl<'a> Send for ShellCaptureOptions<'a>
impl<'a> Unpin for ShellCaptureOptions<'a>
impl<'a> UnsafeUnpin for ShellCaptureOptions<'a>
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