pub struct Cmd<Loc> {
pub exe: String,
pub env: Env,
pub pwd: Loc,
pub msg: Option<String>,
}
Expand description
Struct holds a specification of a command. Can be used for running one-off commands, long running processes etc.
Fields§
§exe: String
Command to run.
env: Env
Environment of a process.
pwd: Loc
Working directory of a process.
msg: Option<String>
Message displayed when running a command.
Implementations§
source§impl<Loc> Cmd<Loc>where
Loc: Location,
impl<Loc> Cmd<Loc>where Loc: Location,
Trait Implementations§
Auto Trait Implementations§
impl<Loc> RefUnwindSafe for Cmd<Loc>where Loc: RefUnwindSafe,
impl<Loc> Send for Cmd<Loc>where Loc: Send,
impl<Loc> Sync for Cmd<Loc>where Loc: Sync,
impl<Loc> Unpin for Cmd<Loc>where Loc: Unpin,
impl<Loc> UnwindSafe for Cmd<Loc>where Loc: UnwindSafe,
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