[][src]Trait hexchat::Plugin

pub trait Plugin {
    const NAME: &'static str;
    const DESC: &'static str;
    const VERSION: &'static str;

    fn new(context: &Context) -> Self;
}

This trait must be implemented on a type before the type is passed to plugin!.

Associated Constants

const NAME: &'static str

The name of your plugin.

const DESC: &'static str

A short description of your plugin.

const VERSION: &'static str

The version string of your plugin.

Loading content...

Required methods

fn new(context: &Context) -> Self

Creates a new instance of your plugin. This is your 'entry point'.

Loading content...

Implementors

Loading content...