pub trait ProxyResolverExt: 'static {
    // Required methods
    fn is_supported(&self) -> bool;
    fn lookup(
        &self,
        uri: &str,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<Vec<GString>, Error>;
    fn lookup_async<P: FnOnce(Result<Vec<GString>, Error>) + 'static>(
        &self,
        uri: &str,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn lookup_future(
        &self,
        uri: &str
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>;
}

Required Methods§

source

fn is_supported(&self) -> bool

source

fn lookup( &self, uri: &str, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Vec<GString>, Error>

source

fn lookup_async<P: FnOnce(Result<Vec<GString>, Error>) + 'static>( &self, uri: &str, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn lookup_future( &self, uri: &str ) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>

Implementors§