pub struct Cmd {
pub(crate) args: Vec<String>,
pub(crate) cur_dir: Option<PathBuf>,
pub(crate) name: String,
}Expand description
Snapshot of command name, args and cwd.
Arguments/program are converted lossily from std::ffi::OsStr to String for ease of logging.
Fields§
§args: Vec<String>Ordered arguments (lossy UTF-8).
cur_dir: Option<PathBuf>Working directory (if set).
name: StringProgram / executable name.
Trait Implementations§
Source§impl Display for Cmd
Formats Cmd for display, showing command name, arguments, and working directory.
impl Display for Cmd
Formats Cmd for display, showing command name, arguments, and working directory.
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnsafeUnpin for Cmd
impl UnwindSafe for Cmd
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