Struct hexchat_plugin::PluginHandle [] [src]

pub struct PluginHandle { /* fields omitted */ }

A hexchat plugin handle

Methods

impl PluginHandle
[src]

[src]

Registers a hexchat plugin.

[src]

Ensures the current context is valid.

Panics

This function may panic if it's called while hexchat is closing.

[src]

Returns the current context.

Note: The returned context may be invalid. Use set_context to check.

[src]

Sets the current context.

Returns true if the context is valid, false otherwise.

[src]

Do something in a valid context.

Note that this changes the active context and doesn't change it back.

Errors

Returns Err(InvalidContextError(f)) if the context is invalid. See set_context. Otherwise, calls f and returns Ok(its result).

Note that InvalidContextError contains the original closure. This allows you to retry.

[src]

Sets a command hook

[src]

Sets a server hook

[src]

Sets a print hook

[src]

Sets a timer hook

[src]

Prints to the hexchat buffer.

[src]

Returns information on the current context.

Note: InfoId::Libdirfs may return None or broken results if the result wouldn't be (valid) UTF-8.

Trait Implementations

Auto Trait Implementations

impl !Send for PluginHandle

impl !Sync for PluginHandle