Enum tbot::proxy::Proxy[][src]

pub enum Proxy {
    Https(Proxy),
    Socks {
        uri: Uri,
        auth: Option<Auth>,
    },
}

An enum of possible proxies.

Variants

Https(Proxy)

A HTTPS proxy.

Socks

A SOCKS proxy.

Show fields

Fields of Socks

uri: Uri

The proxy’s address.

auth: Option<Auth>

The proxy’s authentication data.

Implementations

impl Proxy[src]

pub const fn https(proxy: Proxy) -> Self[src]

Configures an HTTPS proxy.

pub const fn socks(uri: Uri, auth: Option<Auth>) -> Self[src]

Configures a SOCKS proxy.

Trait Implementations

impl Clone for Proxy[src]

impl Debug for Proxy[src]

impl From<Proxy> 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]

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.