Trait Runnable

Source
pub trait Runnable {
    // Required method
    fn run(&self) -> Result<(), Box<dyn Error>>;

    // Provided method
    fn main(&self) -> ExitCode { ... }
}

Required Methods§

Source

fn run(&self) -> Result<(), Box<dyn Error>>

Run something, can either succeed or fail.

Provided Methods§

Source

fn main(&self) -> ExitCode

Run somethin, returning an ExitCode to return to the OS.

Implementors§