[−][src]Trait weechat::Plugin
Weechat plugin trait.
Implement this trait over your struct to implement a Weechat plugin. The init method will get called when Weechat loads the plugin, while the
Drop method will be called when Weechat unloads the plugin.
Required methods
fn init(weechat: &Weechat, args: Args) -> Result<Self, ()>
The initialization method for the plugin.
This will be called when Weechat loads the pluign.
Arguments
-
weechat
- A borrow to a Weechat object that will be valid during the duration of the init callback. -
args
- Arguments passed to the plugin when it is loaded.