pub trait ProxyResolver:
Send
+ Sync
+ 'static {
// Required method
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: ProxyResolveContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Option<Url>, CrawlError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Asynchronous custom proxy URL resolver.
Required Methods§
Sourcefn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: ProxyResolveContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Option<Url>, CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: ProxyResolveContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Option<Url>, CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolves a proxy URL or chooses a direct request with None.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".