[][src]Trait hexchat_plugin::Plugin

pub trait Plugin {
    fn init(&self, ph: &mut PluginHandle, arg: Option<&str>) -> bool;

    fn deinit(&self, _ph: &mut PluginHandle) { ... }
}

A hexchat plugin.

Required methods

fn init(&self, ph: &mut PluginHandle, arg: Option<&str>) -> bool

Called to initialize the plugin.

Loading content...

Provided methods

fn deinit(&self, _ph: &mut PluginHandle)

Called to deinitialize the plugin.

This is always called immediately prior to Drop::drop.

Loading content...

Implementors

Loading content...