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.

Required Associated Types§

Required Methods§

source

fn run_async<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Provided Methods§

source

fn setup(&self, done: Receiver<()>) -> Option<JoinHandle<Result<()>>>

Implementors§

source§

impl AsyncCliCommand for CmdAppDeployment

§

type Output = ()

source§

impl AsyncCliCommand for CmdApp

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppRegions

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecrets

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVersion

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVolumes

§

type Output = ()

source§

impl AsyncCliCommand for CmdAuth

§

type Output = ()

source§

impl AsyncCliCommand for CmdDomain

§

type Output = ()

source§

impl AsyncCliCommand for CmdNamespace

§

type Output = ()

source§

impl AsyncCliCommand for CmdAdd

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppCreate

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppDelete

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppDeploy

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppDeploymentGet

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppDeploymentList

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppDeploymentLogs

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppGet

§

type Output = DeployApp

source§

impl AsyncCliCommand for CmdAppInfo

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppList

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppLogs

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppPurgeCache

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppRegionsList

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecretsCreate

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecretsDelete

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecretsList

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecretsReveal

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppSecretsUpdate

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVersionActivate

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVersionGet

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVersionList

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVolumesRotateSecrets

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVolumesCredentials

§

type Output = ()

source§

impl AsyncCliCommand for CmdAppVolumesList

§

type Output = ()

source§

impl AsyncCliCommand for Login

§

type Output = ()

source§

impl AsyncCliCommand for Logout

§

type Output = ()

source§

impl AsyncCliCommand for Whoami

§

type Output = ()

source§

impl AsyncCliCommand for Config

§

type Output = ()

source§

impl AsyncCliCommand for CmdConnect

§

type Output = ()

source§

impl AsyncCliCommand for CmdDomainGet

§

type Output = ()

source§

impl AsyncCliCommand for CmdDomainList

§

type Output = ()

source§

impl AsyncCliCommand for CmdDomainRegister

§

type Output = ()

source§

impl AsyncCliCommand for CmdZoneFileGet

§

type Output = ()

source§

impl AsyncCliCommand for CmdZoneFileSync

§

type Output = ()

source§

impl AsyncCliCommand for Init

§

type Output = ()

source§

impl AsyncCliCommand for CmdNamespaceCreate

§

type Output = ()

source§

impl AsyncCliCommand for CmdNamespaceGet

§

type Output = ()

source§

impl AsyncCliCommand for CmdNamespaceList

§

type Output = ()

source§

impl AsyncCliCommand for PackagePublish

source§

impl AsyncCliCommand for PackagePush

§

type Output = ()

source§

impl AsyncCliCommand for PackageTag

§

type Output = ()

source§

impl AsyncCliCommand for CmdSsh

§

type Output = ()