pub trait ProxyExt: 'static {
// Required methods
fn connect(
&self,
connection: &impl IsA<IOStream>,
proxy_address: &impl IsA<ProxyAddress>,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<IOStream, Error>;
fn connect_async<P: FnOnce(Result<IOStream, Error>) + 'static>(
&self,
connection: &impl IsA<IOStream>,
proxy_address: &impl IsA<ProxyAddress>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn connect_future(
&self,
connection: &impl IsA<IOStream> + Clone + 'static,
proxy_address: &impl IsA<ProxyAddress> + Clone + 'static
) -> Pin<Box_<dyn Future<Output = Result<IOStream, Error>> + 'static>>;
fn supports_hostname(&self) -> bool;
}