Trait CmdRun

Source
pub trait CmdRun {
    // Required method
    fn run<C: IOContext>(&self, context: &C) -> Result<()>;
}
Expand description

Trait representing a runnable command.

Required Methods§

Source

fn run<C: IOContext>(&self, context: &C) -> Result<()>

Runs command. The implemented command should do IO through the passed in context object.

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§