Struct hexchat_plugin::EnsureValidContext[][src]

pub struct EnsureValidContext<'a> { /* fields omitted */ }

A safety wrapper to ensure you're working with a valid context.

This mechanism attempts to reduce the likelihood of segfaults.

Methods

impl<'a> EnsureValidContext<'a>
[src]

Finds an open context for the given servname and channel.

Compares two nicks based on the server's case mapping.

Executes a command.

Sets the current context.

Returns true if the context is valid, false otherwise.

Prints to the hexchat buffer.

Sets a command hook

Sets a server hook

Sets a print hook

Sets a timer hook

Auto Trait Implementations

impl<'a> !Send for EnsureValidContext<'a>

impl<'a> !Sync for EnsureValidContext<'a>