pub struct PresetCommand {
pub working_dir: String,
}Expand description
A command that has some presets such as:
- Working directory
Fields
working_dir: StringImplementations
sourceimpl PresetCommand
impl PresetCommand
pub fn exec(&self, command_str: &str) -> ResultAnyError<String>
pub fn spawn_command_from_str(
&self,
command_str: &str,
stdin: Option<Stdio>,
stdout: Option<Stdio>
) -> ResultAnyError<Child>
Auto Trait Implementations
impl RefUnwindSafe for PresetCommand
impl Send for PresetCommand
impl Sync for PresetCommand
impl Unpin for PresetCommand
impl UnwindSafe for PresetCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more