[][src]Trait stdweb::web::IWindowOrWorker

pub trait IWindowOrWorker: ReferenceType {
    fn set_timeout<F: FnOnce() + 'static>(&self, callback: F, timeout: u32) { ... }
fn set_clearable_timeout<F: FnOnce() + 'static>(
        &self,
        callback: F,
        timeout: u32
    ) -> TimeoutHandle { ... } }

The IWindowOrWorker mixin describes several features common to the Window and the global scope of web workers.

You most likely don't want to use this directly; instead you should use stdweb::traits::*;.

(JavaScript docs)

Provided methods

fn set_timeout<F: FnOnce() + 'static>(&self, callback: F, timeout: u32)

Sets a timer which executes a function once after the timer expires.

(JavaScript docs)

fn set_clearable_timeout<F: FnOnce() + 'static>(
    &self,
    callback: F,
    timeout: u32
) -> TimeoutHandle

Sets a timer which executes a function once after the timer expires and can be cleared

(JavaScript docs)

Loading content...

Implementors

impl IWindowOrWorker for Window[src]

Loading content...