Struct hexchat_plugin::EnsureValidContext
[−]
[src]
pub struct EnsureValidContext<'a> { /* fields omitted */ }
A safety wrapper that ensures you're working with a valid context.
Methods
impl<'a> EnsureValidContext<'a>
[src]
pub fn find_context(
&mut self,
servname: Option<&str>,
channel: Option<&str>
) -> Option<Context>
[src]
&mut self,
servname: Option<&str>,
channel: Option<&str>
) -> Option<Context>
pub fn nickcmp(&mut self, nick1: &str, nick2: &str) -> Ordering
[src]
pub fn send_modes(&mut self)
[src]
pub fn emit_print(self)
[src]
pub fn emit_print_attrs(self)
[src]
pub fn get_context(&mut self) -> Context
[src]
pub fn set_context(&mut self, ctx: &Context) -> bool
[src]
Sets the current context.
Returns true
if the context is valid, false
otherwise.
pub fn print(&mut self, s: &str)
[src]
Prints to the hexchat buffer.