pub struct CommandSpec { /* private fields */ }Expand description
An argv-based candidate command with bounded execution policy.
Implementations§
Source§impl CommandSpec
impl CommandSpec
Sourcepub fn current_dir(self, path: impl Into<PathBuf>) -> Self
pub fn current_dir(self, path: impl Into<PathBuf>) -> Self
Sets the controlled child working directory.
Sourcepub fn max_output_bytes(self, limit: usize) -> Self
pub fn max_output_bytes(self, limit: usize) -> Self
Sets the combined per-stream output bound.
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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