pub struct EnsureValidContext<'a> { /* private fields */ }
Expand description

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

This mechanism attempts to reduce the likelihood of segfaults.

Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.