pub struct PresetCommand {
pub working_dir: String,
}Expand description
A command that has some presets such as:
- Working directory
Fields§
§working_dir: StringImplementations§
Source§impl PresetCommand
impl PresetCommand
pub async fn exec(&self, command_str: &str) -> ResultAnyError<String>
pub async fn spawn_command_from_str( &self, command_str: &str, stdin: Option<Stdio>, stdout: Option<Stdio>, ) -> ResultAnyError<ChildProcess>
Auto Trait Implementations§
impl Freeze for PresetCommand
impl RefUnwindSafe for PresetCommand
impl Send for PresetCommand
impl Sync for PresetCommand
impl Unpin for PresetCommand
impl UnsafeUnpin for PresetCommand
impl UnwindSafe for PresetCommand
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