Trait gio::prelude::ProxyExt

source ·
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;
}

Required Methods§

source

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

source

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 )

source

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>>

source

fn supports_hostname(&self) -> bool

Implementors§

source§

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