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

pub enum Proxy {
    Socks {
        uri: Uri,
        auth: Option<Auth>,

An enum of possible proxies.



A HTTPS proxy.


A SOCKS proxy.

Show fields

Fields of Socks

uri: Uri

The proxy’s address.

auth: Option<Auth>

The proxy’s authentication data.


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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.