[][src]Trait saigon_core::Plugin

pub trait Plugin {
    fn name(&self) -> String;
fn version(&self) -> String;
fn receive(&mut self, command: &Command) -> PluginResult; fn help(&self) -> Option<HelpText> { ... } }

A Saigon plugin.

Required methods

fn name(&self) -> String

Returns the plugin's name.

fn version(&self) -> String

Returns the plugin's version.

fn receive(&mut self, command: &Command) -> PluginResult

Receives a Command for the plugin to process.

Loading content...

Provided methods

fn help(&self) -> Option<HelpText>

Returns the help text for the plugin.

Loading content...

Implementors

Loading content...