Trait TimerCallback

Source
pub trait TimerCallback {
    // Required method
    fn callback(&mut self, weechat: &Weechat, remaining_calls: RemainingCalls);
}
Expand description

Trait for the timer callback

A blanket implementation for pure FnMut functions exists, if data needs to be passed to the callback implement this over your struct.

Required Methods§

Source

fn callback(&mut self, weechat: &Weechat, remaining_calls: RemainingCalls)

Callback that will be called when the timer fires.

§Arguments
  • weechat - A Weechat context.

  • remaining_calls - How many times the timer will fire.

Implementors§