Skip to main content

ProxyResolverExt

Trait ProxyResolverExt 

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

Provided 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>( &self, uri: &str, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
where P: FnOnce(Result<Vec<GString>, Error>) + 'static,

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§