Struct timer_list::TimerEventFn
source · pub struct TimerEventFn(/* private fields */);Expand description
A simple wrapper of a closure that implements the TimerEvent trait.
So that it can be used as in the TimerList.
Implementations§
source§impl TimerEventFn
impl TimerEventFn
sourcepub fn new<F>(f: F) -> Selfwhere
F: FnOnce(TimeValue) + 'static,
pub fn new<F>(f: F) -> Selfwhere F: FnOnce(TimeValue) + 'static,
Constructs a new TimerEventFn from a closure.
Trait Implementations§
source§impl TimerEvent for TimerEventFn
impl TimerEvent for TimerEventFn
Auto Trait Implementations§
impl !RefUnwindSafe for TimerEventFn
impl !Send for TimerEventFn
impl !Sync for TimerEventFn
impl Unpin for TimerEventFn
impl !UnwindSafe for TimerEventFn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more