Struct native::io::timer::Timer[src]

pub struct Timer {
    // some fields omitted
}

Methods

impl Timer

fn new() -> IoResult<Timer>

fn sleep(ms: u64)

Trait Implementations

impl RtioTimer for Timer

fn sleep(&mut self, msecs: u64)

fn oneshot(&mut self, msecs: u64, cb: Box<Callback + Send>)

fn period(&mut self, msecs: u64, cb: Box<Callback + Send>)

impl Drop for Timer

fn drop(&mut self)