pub struct Shell { /* private fields */ }
Implementations§
Source§impl Shell
impl Shell
pub async fn spawn_and_wait( &self, command: impl AsRef<OsStr>, current_dir: impl AsRef<Path>, ) -> Result<ExitStatus>
pub async fn exec( &self, command: impl AsRef<OsStr>, current_dir: impl AsRef<Path>, ) -> Result<ExitStatus>
pub async fn is_success( &self, command: impl AsRef<OsStr>, current_dir: impl AsRef<Path>, ) -> Result<bool>
Trait Implementations§
impl Eq for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnwindSafe for Shell
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