pub struct Commands<'a> { /* private fields */ }Expand description
The ergonomic commands accessor returned by Sandbox::commands().
Implementations§
Source§impl<'a> Commands<'a>
impl<'a> Commands<'a>
Sourcepub async fn run(
&self,
cmd: &str,
opts: RunOptions,
) -> Result<CommandResult, SolariError>
pub async fn run( &self, cmd: &str, opts: RunOptions, ) -> Result<CommandResult, SolariError>
Run a command to completion.
Sourcepub async fn start(
&self,
cmd: &str,
opts: RunOptions,
) -> Result<CommandHandle, SolariError>
pub async fn start( &self, cmd: &str, opts: RunOptions, ) -> Result<CommandHandle, SolariError>
Start a command and return a handle immediately.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Commands<'a>
impl<'a> !UnwindSafe for Commands<'a>
impl<'a> Freeze for Commands<'a>
impl<'a> Send for Commands<'a>
impl<'a> Sync for Commands<'a>
impl<'a> Unpin for Commands<'a>
impl<'a> UnsafeUnpin for Commands<'a>
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