ConsolePlugin

Trait ConsolePlugin 

Source
pub trait ConsolePlugin {
    // Required methods
    fn print(&self, printer: &ExternalPrinter, subcommand: Option<&str>);
    fn help(&self) -> &str;
}

Required Methods§

Source

fn print(&self, printer: &ExternalPrinter, subcommand: Option<&str>)

Print information into console.

§Arguments
  • printer: console printer instance
  • subcommand: subcommand referenced to oracle
Source

fn help(&self) -> &str

Return help information about specific oracle.

Implementors§