pub struct Shell<R: Runtime> { /* private fields */ }
Implementations§
source§impl<R: Runtime> Shell<R>
impl<R: Runtime> Shell<R>
sourcepub fn command(&self, program: impl AsRef<OsStr>) -> Command
pub fn command(&self, program: impl AsRef<OsStr>) -> Command
Creates a new Command for launching the given program.
sourcepub fn sidecar(&self, program: impl AsRef<Path>) -> Result<Command, Error>
pub fn sidecar(&self, program: impl AsRef<Path>) -> Result<Command, Error>
Creates a new Command for launching the given sidecar program.
A sidecar program is a embedded external binary in order to make your application work or to prevent users having to install additional dependencies (e.g. Node.js, Python, etc).
Auto Trait Implementations§
impl<R> Freeze for Shell<R>
impl<R> !RefUnwindSafe for Shell<R>
impl<R> Send for Shell<R>
impl<R> Sync for Shell<R>
impl<R> Unpin for Shell<R>
impl<R> !UnwindSafe for Shell<R>
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