[][src]Trait weechat::config::ConfigReloadCallback

pub trait ConfigReloadCallback: 'static {
    fn callback(&mut self, weechat: &Weechat, config: &Conf);
}

Trait for the config reload callback.

This trait can be implemented or a normal function or coroutine can be passed as the callback.

Required methods

fn callback(&mut self, weechat: &Weechat, config: &Conf)

Function called when configuration file is reloaded with /reload

Arguments

  • weeechat - A reference to the weechat context.

  • config - A reference to the non-owned config.

Loading content...

Implementors

impl<T: FnMut(&Weechat, &Conf) + 'static> ConfigReloadCallback for T[src]

Loading content...