Trait TimerDriver

Source
pub trait TimerDriver: Unpin {
    type Timer: 'static + PollTimer;

    // Required method
    fn new_timer(&self) -> Self::Timer;
}
Expand description

A trait for driving timers.

Required Associated Types§

Source

type Timer: 'static + PollTimer

The timer type.

Required Methods§

Source

fn new_timer(&self) -> Self::Timer

Returns a new timer.

Implementations on Foreign Types§

Source§

impl TimerDriver for Arc<IocpDriver>

Source§

type Timer = Timer

Source§

fn new_timer(&self) -> Self::Timer

Implementors§