Struct hexchat_api::Plugin
source · pub struct Plugin { /* private fields */ }
Expand description
Represents a created plugin entry. Plugins that embed other language
interpreters and load plugins written in those languages can have Hexchat
look as if the loaded scripts are actual plugins. By creating a Plugin
object for such a script, an entry is made in Hexchat’s list of loaded
plugins. When one of these scripts is unloaded, the fictitious plugin entry
can be removed from Hexchat by dropping the associated Plugin
object.
Implementations§
source§impl Plugin
impl Plugin
sourcepub fn new(
file_name: &str,
plugin_name: &str,
description: &str,
version: &str
) -> Plugin
pub fn new( file_name: &str, plugin_name: &str, description: &str, version: &str ) -> Plugin
Creates a new plugin entry in Hexchat.
Arguments
file_name
- The name of the script representing a “plugin”.
plugin_name
- The name of the plugin script.
description
- The plugin script’s description.
version
- A version string for the plugin script.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Plugin
impl !Send for Plugin
impl !Sync for Plugin
impl Unpin for Plugin
impl !UnwindSafe for Plugin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more