Trait ux::prelude::ProxyExt[]

pub trait ProxyExt: 'static {
    pub fn connect<P, Q, R>(
        &self,
        connection: &P,
        proxy_address: &Q,
        cancellable: Option<&R>
    ) -> Result<IOStream, Error>
    where
        P: IsA<IOStream>,
        Q: IsA<ProxyAddress>,
        R: IsA<Cancellable>
;
pub fn connect_async<P, Q, R, S>(
        &self,
        connection: &P,
        proxy_address: &Q,
        cancellable: Option<&R>,
        callback: S
    )
    where
        P: IsA<IOStream>,
        Q: IsA<ProxyAddress>,
        R: IsA<Cancellable>,
        S: 'static + FnOnce(Result<IOStream, Error>) + Send
;
pub fn connect_async_future<P, Q>(
        &self,
        connection: &P,
        proxy_address: &Q
    ) -> Pin<Box<dyn Future<Output = Result<IOStream, Error>> + 'static, Global>>
    where
        P: 'static + IsA<IOStream> + Clone,
        Q: 'static + IsA<ProxyAddress> + Clone
;
pub fn supports_hostname(&self) -> bool; }

Required methods

pub fn connect<P, Q, R>(
    &self,
    connection: &P,
    proxy_address: &Q,
    cancellable: Option<&R>
) -> Result<IOStream, Error> where
    P: IsA<IOStream>,
    Q: IsA<ProxyAddress>,
    R: IsA<Cancellable>, 

pub fn connect_async<P, Q, R, S>(
    &self,
    connection: &P,
    proxy_address: &Q,
    cancellable: Option<&R>,
    callback: S
) where
    P: IsA<IOStream>,
    Q: IsA<ProxyAddress>,
    R: IsA<Cancellable>,
    S: 'static + FnOnce(Result<IOStream, Error>) + Send

pub fn connect_async_future<P, Q>(
    &self,
    connection: &P,
    proxy_address: &Q
) -> Pin<Box<dyn Future<Output = Result<IOStream, Error>> + 'static, Global>> where
    P: 'static + IsA<IOStream> + Clone,
    Q: 'static + IsA<ProxyAddress> + Clone

pub fn supports_hostname(&self) -> bool

Loading content...

Implementors

impl<O> ProxyExt for O where
    O: IsA<Proxy>, 

Loading content...