Plugin

Trait Plugin 

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

    // Provided method
    fn deinit(&self, _ph: &mut PluginHandle) { ... }
}
Expand description

A hexchat plugin.

Required Methods§

Source

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

Called to initialize the plugin.

Provided Methods§

Source

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

Called to deinitialize the plugin.

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

Implementors§