pub struct Proxy { /* private fields */ }
Expand description
Utility struct for session capabilities defining the proxy settings
For more details please see https://www.w3.org/TR/webdriver/#proxy
Implementations§
Source§impl Proxy
impl Proxy
pub fn new() -> Self
Sourcepub fn set_proxy_type(&mut self, proxy_type: ProxyType) -> &mut Self
pub fn set_proxy_type(&mut self, proxy_type: ProxyType) -> &mut Self
Indicates the type of proxy configuration.
Sourcepub fn set_proxy_autoconfig_url(&mut self, url: &str) -> &mut Self
pub fn set_proxy_autoconfig_url(&mut self, url: &str) -> &mut Self
Defines the URL for a proxy auto-config file if proxyType is equal to “pac”.
Sourcepub fn set_ftp_proxy(&mut self, host_and_port: &str) -> &mut Self
pub fn set_ftp_proxy(&mut self, host_and_port: &str) -> &mut Self
Defines the proxy host for FTP traffic when the proxyType is “manual”.
Sourcepub fn set_http_proxy(&mut self, host_and_port: &str) -> &mut Self
pub fn set_http_proxy(&mut self, host_and_port: &str) -> &mut Self
Defines the proxy host for HTTP traffic when the proxyType is “manual”.
Sourcepub fn set_no_proxy(&mut self, exceptions: Vec<&str>) -> &mut Self
pub fn set_no_proxy(&mut self, exceptions: Vec<&str>) -> &mut Self
Lists the address for which the proxy should be bypassed when the proxyType is “manual”.
Sourcepub fn set_ssl_proxy(&mut self, host_and_port: &str) -> &mut Self
pub fn set_ssl_proxy(&mut self, host_and_port: &str) -> &mut Self
Defines the proxy host for encrypted TLS traffic when the proxyType is “manual”.
Sourcepub fn set_socks_proxy(&mut self, host_and_port: &str) -> &mut Self
pub fn set_socks_proxy(&mut self, host_and_port: &str) -> &mut Self
Defines the proxy host for a SOCKS proxy when the proxyType is “manual”.
Sourcepub fn set_socks_version(&mut self, version: u8) -> &mut Self
pub fn set_socks_version(&mut self, version: u8) -> &mut Self
Defines the SOCKS proxy version when the proxyType is “manual”.
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnwindSafe for Proxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more