Trait ProxyExt

Source
pub trait ProxyExt: 'static {
    // Required methods
    fn connect<P: IsA<IOStream>, Q: IsA<ProxyAddress>, R: IsA<Cancellable>>(
        &self,
        connection: &P,
        proxy_address: &Q,
        cancellable: Option<&R>,
    ) -> Result<IOStream, Error>;
    fn connect_async<P: IsA<IOStream>, Q: IsA<ProxyAddress>, R: IsA<Cancellable>, S: FnOnce(Result<IOStream, Error>) + Send + 'static>(
        &self,
        connection: &P,
        proxy_address: &Q,
        cancellable: Option<&R>,
        callback: S,
    );
    fn supports_hostname(&self) -> bool;
}

Required Methods§

Source

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

Source

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

Source

fn supports_hostname(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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