hopli::utils

Trait Cmd

Source
pub trait Cmd: Parser + Sized {
    // Required methods
    fn run(self) -> Result<(), HelperErrors>;
    fn async_run(self) -> impl Future<Output = Result<(), HelperErrors>> + Send;
}

Required Methods§

Source

fn run(self) -> Result<(), HelperErrors>

Source

fn async_run(self) -> impl Future<Output = Result<(), HelperErrors>> + 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§