Trait wasmer_cli::commands::AsyncCliCommand
source · pub(crate) trait AsyncCliCommand: Send + Sync {
type Output: Send + Sync;
// Required method
fn run_async<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn setup(&self, done: Receiver<()>) -> Option<JoinHandle<Result<()>>> { ... }
}
Expand description
An executable CLI command that runs in an async context.
An AsyncCliCommand
automatically implements CliCommand
by creating
a new tokio runtime and blocking.