pub trait Worker<C>:
Send
+ Sync
+ 'static {
// Required method
fn handle(&self, cx: Context<C>) -> impl Future<Output = Outcome> + Send;
}Expand description
Handles one request of a crawl.
The worker receives a Context holding the request and a client for
it. It decides when, and whether, to fetch the response, may queue
further requests, and tells the crawler what to do next.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".