Skip to main content

Module crawler

Module crawler 

Source
Expand description

Crawler lifecycle kinds, handles, and shared state. The crawler engine: lifecycle kinds, handles, and shared state.

Structs§

AttemptObservation
Metadata observed after a kind successfully constructs its handler context.
AutoscalerSnapshot
A point-in-time view of a crawler’s concurrency scaler.
BasicContext
The handler context for BasicKind.
BasicKind
The no-fetch crawler kind whose execution hands requests directly to handlers.
Crawler
A configured crawler using lifecycle behavior supplied by K.
CrawlerBuilder
Builds a Crawler around a crawler kind.
CrawlerEnv
Shared process-level state supplied to crawler lifecycle hooks.
CrawlerHandle
A cheaply cloned weak back-reference to a running crawler.
RequestEnv
Per-attempt inputs supplied to CrawlerKind::execute.
RequestPrep
Engine-owned scratch space passed to CrawlerKind::before_request.

Enums§

CrawlerBuildError
An error produced while building a crawler.
RequestOutcome
The outcome supplied to per-attempt cleanup.

Traits§

CrawlerKind
Defines the complete lifecycle for one crawler flavor.
IntoStartRequest
A single value convertible into one start Request.
IntoStartRequests
A collection of start requests accepted by super::Crawler::run.

Type Aliases§

BasicCrawler
The no-HTTP crawler: drives the queue and hands requests straight to the handler.