Skip to main content

Runnable

Trait Runnable 

Source
pub trait Runnable {
    // Required method
    fn run(&self, yes: bool) -> Result<()>;
}
Expand description

A trait for subcommands that can be executed.

Required Methods§

Source

fn run(&self, yes: bool) -> Result<()>

Executes the subcommand.

§Errors

Returns an error if the command execution fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§