1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern {
    pub type ProcessFeatures;

    #[wasm_bindgen(method, getter)]
    pub fn debug(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn inspector(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn ipv6(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn tls(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn tls_alpn(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn tls_ocsp(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn tls_sni(this: &ProcessFeatures) -> bool;

    #[wasm_bindgen(method, getter)]
    pub fn uv(this: &ProcessFeatures) -> bool;
}