App

Trait App 

Source
pub trait App: Parser {
    // Required methods
    fn verbose(&self) -> u8;
    fn run(&self) -> Result<()>;

    // Provided method
    fn start() -> Result<()> { ... }
}
Expand description

Shared application interface.

Required Methods§

Source

fn verbose(&self) -> u8

Verbose logging level.

Source

fn run(&self) -> Result<()>

Run application.

Provided Methods§

Source

fn start() -> Result<()>

Start application.

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§