pub struct PlannedCommand { /* private fields */ }Expand description
A validated command operation ready for execution.
ⓘ
command.cwd_path = std::path::PathBuf::from("outside");Implementations§
Source§impl PlannedCommand
impl PlannedCommand
Sourcepub const fn command(&self) -> &CommandKind
pub const fn command(&self) -> &CommandKind
Returns the command invocation.
Sourcepub const fn env(&self) -> &BTreeMap<String, String>
pub const fn env(&self) -> &BTreeMap<String, String>
Returns extra environment variables for this command.
Sourcepub const fn allow_failure(&self) -> bool
pub const fn allow_failure(&self) -> bool
Returns whether a non-zero exit status should be non-fatal.
Sourcepub const fn declaration(&self) -> SourceSpan
pub const fn declaration(&self) -> SourceSpan
Returns the source location for the command declaration.
Trait Implementations§
Source§impl Clone for PlannedCommand
impl Clone for PlannedCommand
Source§fn clone(&self) -> PlannedCommand
fn clone(&self) -> PlannedCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlannedCommand
impl Debug for PlannedCommand
impl Eq for PlannedCommand
Source§impl PartialEq for PlannedCommand
impl PartialEq for PlannedCommand
Source§fn eq(&self, other: &PlannedCommand) -> bool
fn eq(&self, other: &PlannedCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlannedCommand
Auto Trait Implementations§
impl Freeze for PlannedCommand
impl RefUnwindSafe for PlannedCommand
impl Send for PlannedCommand
impl Sync for PlannedCommand
impl Unpin for PlannedCommand
impl UnsafeUnpin for PlannedCommand
impl UnwindSafe for PlannedCommand
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