Trait Timer

Source
pub trait Timer {
    // Required method
    fn when(&self) -> u64;

    // Provided method
    fn when_mut(&mut self) -> u64 { ... }
}

Required Methods§

Source

fn when(&self) -> u64

当时与现在的间隔,以确定插入确定的槽

Provided Methods§

Source

fn when_mut(&mut self) -> u64

可能需要修改对象,此处用可变值

Implementations on Foreign Types§

Source§

impl Timer for f32

Source§

fn when(&self) -> u64

Source§

impl Timer for f64

Source§

fn when(&self) -> u64

Source§

impl Timer for i8

Source§

fn when(&self) -> u64

Source§

impl Timer for i16

Source§

fn when(&self) -> u64

Source§

impl Timer for i32

Source§

fn when(&self) -> u64

Source§

impl Timer for i64

Source§

fn when(&self) -> u64

Source§

impl Timer for i128

Source§

fn when(&self) -> u64

Source§

impl Timer for u8

Source§

fn when(&self) -> u64

Source§

impl Timer for u16

Source§

fn when(&self) -> u64

Source§

impl Timer for u32

Source§

fn when(&self) -> u64

Source§

impl Timer for u64

Source§

fn when(&self) -> u64

Source§

impl Timer for u128

Source§

fn when(&self) -> u64

Source§

impl Timer for usize

Source§

fn when(&self) -> u64

Implementors§

Source§

impl<T> Timer for StampTimer<T>

Source§

impl<T: Timer, V> Timer for StepTimer<T, V>