Struct rustuv::timer::TimerWatcher[src]

pub struct TimerWatcher {
    pub handle: *uv_timer_t,
    // some fields omitted
}

Fields

handle

Methods

impl TimerWatcher

fn new(io: &mut UvIoFactory) -> Box<TimerWatcher>

fn new_home(loop_: &Loop, home: HomeHandle) -> TimerWatcher

fn start(&mut self, f: uv_timer_cb, msecs: u64, period: u64)

fn stop(&mut self)

unsafe fn set_data<T>(&mut self, data: *T)

Trait Implementations

impl UvHandle<uv_timer_t> for TimerWatcher

fn uv_handle(&self) -> *uv_timer_t

fn uv_loop(&self) -> Loop

fn alloc(_: Option<Self>, ty: uv_handle_type) -> *T

unsafe fn from_uv_handle<'a>(h: &'a *T) -> &'a mut Self

fn install(~self) -> Box<Self>

fn close_async_(&mut self)

fn close(&mut self)

impl RtioTimer for TimerWatcher

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 TimerWatcher

fn drop(&mut self)