Skip to main content

CliToolHost

Trait CliToolHost 

Source
pub trait CliToolHost: Host<Error: From<CommandError>> {
    // Required method
    fn cli_tool(&self) -> Option<&CliTool>;
}
Expand description

A command host that can hand out its app’s CliTool (None in a development build with no bundled tool: the commands are then disabled with a reason).

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§