[][src]Trait weechat::hooks::TimerCallback

pub trait TimerCallback {
    fn callback(&mut self, weechat: &Weechat, remaining_calls: RemainingCalls);
}

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

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.

Loading content...

Implementors

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

Loading content...