pub trait ProxyResolverExt: 'static {
// Required methods
fn is_supported(&self) -> bool;
fn lookup<P: IsA<Cancellable>>(
&self,
uri: &str,
cancellable: Option<&P>,
) -> Result<Vec<GString>, Error>;
fn lookup_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<GString>, Error>) + Send + 'static>(
&self,
uri: &str,
cancellable: Option<&P>,
callback: Q,
);
}
Required Methods§
fn is_supported(&self) -> bool
fn lookup<P: IsA<Cancellable>>( &self, uri: &str, cancellable: Option<&P>, ) -> Result<Vec<GString>, Error>
fn lookup_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<GString>, Error>) + Send + 'static>( &self, uri: &str, cancellable: Option<&P>, callback: Q, )
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.