1pub trait W3cCapRequSetter<'c1, 'c2> {
23 fn mandate_as_w3c(&mut self, other: &'c1 impl W3cCapaGetter);
24 fn allow_as_w3c(&mut self, other: &'c2 impl W3cCapaGetter) -> &mut Self;
25}
26
27pub trait W3cCapaGetter {
33 fn browser_name(&self) -> Option<&str> {
35 None
36 }
37 fn browser_version(&self) -> Option<&str> {
38 None
39 }
40 fn platform_name(&self) -> Option<&str> {
41 None
42 }
43 fn accept_insecure_certs(&self) -> Option<bool> {
44 None
45 }
46 fn page_load_strategy(&self) -> Option<&str> {
47 None
48 }
49 fn proxy_type(&self) -> Option<&str> {
51 None
52 }
53 fn proxy_autoconfig_url(&self) -> Option<&str> {
54 None
55 }
56 fn ftp_proxy(&self) -> Option<&str> {
57 None
58 }
59 fn http_proxy(&self) -> Option<&str> {
60 None
61 }
62 fn no_proxy(&self) -> Option<Vec<&str>> {
63 None
64 }
65 fn ssl_proxy(&self) -> Option<&str> {
66 None
67 }
68 fn socks_proxy(&self) -> Option<&str> {
69 None
70 }
71 fn socks_version(&self) -> Option<u8> {
72 None
73 }
74 fn window_rect(&self) -> Option<bool> {
76 None
77 }
78 fn timeouts_script(&self) -> Option<u32> {
80 None
81 }
82 fn timeouts_page_load(&self) -> Option<u32> {
83 None
84 }
85 fn timeouts_implicit(&self) -> Option<u32> {
86 None
87 }
88 fn strict_file_interactability(&self) -> Option<bool> {
90 None
91 }
92 fn unhandled_prompt_behavior(&self) -> Option<&str> {
93 None
94 }
95 fn wsurl(&self) -> Option<&str> {
96 None
97 }
98
99 fn is_insig_as_w3c(&self) -> bool;
103}
104
105pub trait W3cCapaSetter<'c> {
119 fn set_browser_name(&mut self, arg: &'c str);
122 fn set_browser_name_take(&mut self, arg: String);
123 fn set_browser_name_owned(&mut self, arg: &str);
124 fn set_browser_version(&mut self, arg: &'c str);
127 fn set_browser_version_take(&mut self, arg: String);
128 fn set_browser_version_owned(&mut self, arg: &str);
129 fn set_platform_name(&mut self, arg: &'c str);
130 fn set_platform_name_take(&mut self, arg: String);
131 fn set_platform_name_owned(&mut self, arg: &str);
132 fn set_accept_insecure_certs(&mut self, arg: bool);
133 fn set_page_load_strategy(&mut self, arg: &'c str);
134 fn set_page_load_strategy_take(&mut self, arg: String);
135 fn set_page_load_strategy_owned(&mut self, arg: &str);
136 fn set_proxy_type(&mut self, arg: &'c str);
138 fn set_proxy_autoconfig_url(&mut self, arg: &'c str);
139 fn set_ftp_proxy(&mut self, arg: &'c str);
140 fn set_http_proxy(&mut self, arg: &'c str);
141 fn set_no_proxy(&mut self, arg: Vec<&'c str>);
142 fn add_no_proxy(&mut self, arg: &'c str);
143 fn set_ssl_proxy(&mut self, arg: &'c str);
144 fn set_socks_proxy(&mut self, arg: &'c str);
145 fn set_socks_proxy_owned(&mut self, arg: &str);
146 fn set_socks_proxy_take(&mut self, arg: String);
147 fn set_socks_version(&mut self, arg: u8);
148 fn set_window_rect(&mut self, arg: bool);
150 fn set_timeouts_script(&mut self, arg: u32);
157 fn set_timeouts_page_load(&mut self, arg: u32);
160 fn set_timeouts_implicit(&mut self, arg: u32);
163 fn set_strict_file_interactability(&mut self, arg: bool);
165 fn set_unhandled_prompt_behavior(&mut self, arg: &'c str);
166 fn set_unhandled_prompt_behavior_take(&mut self, arg: String);
167 fn set_unhandled_prompt_behavior_owned(&mut self, arg: &str);
168 fn set_wsurl(&mut self, arg: &'c str);
169 fn set_wsurl_take(&mut self, arg: String);
170 fn enable_bidi(&mut self);
171}
172
173pub trait W3cSessResultGetter {
179 fn session_id(&self) -> &str;
183 fn wsurl(&self) -> Option<&str>;
184}