[−][src]Struct ureq::Proxy
Proxy server definition
Implementations
impl Proxy[src]
pub fn new<S: AsRef<str>>(proxy: S) -> Result<Self, Error>[src]
Create a proxy from a format string.
Arguments:
proxy- a str of format<protocol>://<user>:<password>@<host>:port. All parts except host are optional.
Protocols
http: HTTP Connectsocks,socks5: SOCKS5 (requires socks feature)
Examples
http://127.0.0.1:8080socks5://john:smith@socks.google.comjohn:smith@socks.google.com:8000localhost
Trait Implementations
impl Clone for Proxy[src]
impl Debug for Proxy[src]
impl Eq for Proxy[src]
impl Hash for Proxy[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Proxy> for Proxy[src]
impl StructuralEq for Proxy[src]
impl StructuralPartialEq for Proxy[src]
Auto Trait Implementations
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnwindSafe for Proxy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,