pub struct Cmd {
pub path: String,
pub args: Vec<String>,
pub dir: String,
pub err: Option<String>,
}Expand description
A command: the fields the deploy commands use.
Fields§
§path: StringThe program that PATH lookup resolved, or the name as given.
args: Vec<String>The name as given, then the arguments.
dir: StringThe child’s working directory; empty for the caller’s.
err: Option<String>The PATH lookup failure, returned when run without starting anything.
Implementations§
Trait Implementations§
Source§impl Display for Cmd
The command’s text: the resolved path and the arguments, or (when the lookup failed) the
name as given and the arguments, space-joined.
impl Display for Cmd
The command’s text: the resolved path and the arguments, or (when the lookup failed) the name as given and the arguments, space-joined.
impl Eq for Cmd
impl StructuralPartialEq for Cmd
Auto Trait Implementations§
impl Forget for Cmd
impl Freeze for Cmd
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.