Struct run_shell::ShellCommand
source · [−]pub struct ShellCommand {
pub command: Command,
/* private fields */
}
Fields
command: Command
Implementations
sourceimpl ShellCommand
impl ShellCommand
pub fn new(line: String, command: Command) -> ShellCommand
pub fn run(self) -> ShellResult
pub fn spawn(self) -> Result<ShellChild, ShellError>
pub fn stdout_utf8(self) -> Result<String, ShellError>
Auto Trait Implementations
impl !RefUnwindSafe for ShellCommand
impl Send for ShellCommand
impl Sync for ShellCommand
impl Unpin for ShellCommand
impl !UnwindSafe for ShellCommand
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