[][src]Struct rttp_client::types::Proxy

pub struct Proxy { /* fields omitted */ }

Methods

impl Proxy[src]

pub fn builder(type_: ProxyType) -> ProxyBuilder[src]

pub fn http_with_authorization<H: AsRef<str>, U: AsRef<str>, P: AsRef<str>>(
    host: H,
    port: u32,
    username: U,
    password: P
) -> Self
[src]

pub fn http<H: AsRef<str>>(host: H, port: u32) -> Self[src]

pub fn https_with_authorization<H: AsRef<str>, U: AsRef<str>, P: AsRef<str>>(
    host: H,
    port: u32,
    username: U,
    password: P
) -> Self
[src]

pub fn https<H: AsRef<str>>(host: H, port: u32) -> Self[src]

pub fn socks4<H: AsRef<str>>(host: H, port: u32) -> Self[src]

pub fn socks4_with_authorization<H: AsRef<str>, U: AsRef<str>, P: AsRef<str>>(
    host: H,
    port: u32,
    username: U,
    password: P
) -> Self
[src]

pub fn socks5<H: AsRef<str>>(host: H, port: u32) -> Self[src]

pub fn socks5_with_authorization<H: AsRef<str>, U: AsRef<str>, P: AsRef<str>>(
    host: H,
    port: u32,
    username: U,
    password: P
) -> Self
[src]

pub fn host(&self) -> &String[src]

pub fn port(&self) -> u32[src]

pub fn username(&self) -> &Option<String>[src]

pub fn password(&self) -> &Option<String>[src]

pub fn type_(&self) -> &ProxyType[src]

Trait Implementations

impl AsRef<Proxy> for Proxy[src]

impl AsRef<Proxy> for ProxyBuilder[src]

impl Clone for Proxy[src]

impl Debug for Proxy[src]

Auto Trait Implementations

impl Send for Proxy

impl Sync for Proxy

impl Unpin for Proxy

impl UnwindSafe for Proxy

impl RefUnwindSafe for Proxy

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,