[−][src]Struct rttp_client::types::Proxy
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]
host: H,
port: u32,
username: U,
password: P
) -> Self
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]
host: H,
port: u32,
username: U,
password: P
) -> Self
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]
host: H,
port: u32,
username: U,
password: P
) -> Self
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]
host: H,
port: u32,
username: U,
password: P
) -> Self
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,