pub fn js_api<'a>(scope: &'a mut HandleScope<()>) -> Local<'a, ObjectTemplate> {
        let api = ObjectTemplate::new(scope);

        add_method!(api, scope, "get", Self::get_callback);
        add_method!(api, scope, "getIds", Self::get_ids_callback);
        add_method!(api, scope, "getType", Self::get_type_callback);
        add_method!(api, scope, "pullEvent", Self::pull_event_callback);

        api
    }
/// Provides the JavaScript api for interacting with the peripherals.
Provides the JavaScript api for interacting with the peripherals.
Provides the JavaScript api for interacting with the peripherals .
pub fn js_api<'a>(scope: &'a mut HandleScope<()>) -> Local<'a, ObjectTemplate> {
        let api = ObjectTemplate::new(scope);
        add_method!(api, scope, "get", Self::get_callback);
        add_method!(api, scope, "getIds", Self::get_ids_callback);
        add_method!(api, scope, "getType", Self::get_type_callback);
        add_method!(api, scope, "pullEvent", Self::pull_event_callback);
        api
    }
pub fn js_api < ' a > ( scope : & ' a mut HandleScope < ( ) > ) -> Local < ' a , ObjectTemplate > { let api = ObjectTemplate :: new ( scope ) ; add_method ! ( api scope " " Self get_callback ) ; add_method ! ( api scope " " Self get_ids_callback ) ; add_method ! ( api scope " " Self get_type_callback ) ; add_method ! ( api scope " " Self pull_event_callback ) ; api }
Provides the JavaScript api for interacting with the peripherals.
Provides the JavaScript api for interacting with the peripherals .
scope
&'a mut HandleScope<()>
scope
&'a mut HandleScope<()>