Skip to main content

CodexCommand

Trait CodexCommand 

Source
pub trait CodexCommand: Send + Sync {
    type Output: Send;

    // Required methods
    fn args(&self) -> Vec<String>;
    fn execute(
        &self,
        codex: &Codex,
    ) -> impl Future<Output = Result<Self::Output>> + Send;
}
Expand description

Trait implemented by all codex CLI command builders.

Required Associated Types§

Required Methods§

Source

fn args(&self) -> Vec<String>

Source

fn execute( &self, codex: &Codex, ) -> impl Future<Output = Result<Self::Output>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§