Struct Proxy

Source
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

Source

pub fn new() -> Self

Source

pub fn set_proxy_type(&mut self, proxy_type: ProxyType) -> &mut Self

Indicates the type of proxy configuration.

Source

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”.

Source

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”.

Source

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”.

Source

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”.

Source

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”.

Source

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”.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.