Skip to main content

Crate duckduckgo_core

Crate duckduckgo_core 

Source
Expand description

Core DuckDuckGo search client and parser.

Re-exports§

pub use region::Region;

Modules§

paths
region

Structs§

Client
ClientBuilder
Limits
Tunable constants for the spacing/in-flight guard. Defaults match the 2026-05-08 first-party field report (docs/en/ddgr.md); they may be overridden via environment variables for advanced users that have measured a different egress profile.
ManualClock
RateLimitJson
RateLimitProgress
One progress observation for an in-flight rate-limit wait. Emitted once per acquire cycle (the inner sleep is bounded so a long cooldown still yields periodic updates without a separate timer task).
SearchBuilder
SearchMeta
SearchResponse
SearchResult
SystemClock

Enums§

Error
RateLimitWait
Which kind of wait the limiter is currently performing. Surfaces in RateLimitProgress events so callers can render distinct user-facing messages for the post-block cooldown vs. the inter-request spacing gap.
TimeFilter

Traits§

Clock

Type Aliases§

ProgressHook
Optional callback the limiter invokes before each wait sleep so a host (typically the CLI) can render a transparent progress line. The closure must be cheap; it is called while holding no locks but on the hot path of the limiter loop.
Result
SharedClock