Struct hexchat_api::PluginInfo
source · pub struct PluginInfo { /* private fields */ }
Expand description
Hexchat addons need to return an instance of this struct from their
plugin_info()
function, which gets called when Hexchat loads the addons.
The PluginInfo
object holds pinned internal buffers that Hexchat can
read from at its leisure.
Implementations§
source§impl PluginInfo
impl PluginInfo
sourcepub fn new(name: &str, version: &str, description: &str) -> PluginInfo
pub fn new(name: &str, version: &str, description: &str) -> PluginInfo
Constructor. The plugin information provided in the parameters is used to create persistent pinned buffers that are guaranteed to be valid for Hexchat to read from while the plugin is loading.
Arguments
name
- The name of the plugin.version
- The plugin’s version number.description
- The plugin’s description.
Returns
A PluginInfo
object initialized from the parameter data.
Auto Trait Implementations§
impl RefUnwindSafe for PluginInfo
impl !Send for PluginInfo
impl !Sync for PluginInfo
impl Unpin for PluginInfo
impl UnwindSafe for PluginInfo
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