Skip to main content

Module screenshot

Module screenshot 

Source
Expand description

Screenshot and page image capture helpers.

§Workload

Mista: multi-target rect resolve uses join_bounded (I/O CDP). Decode and disk write of PNG/JPEG use spawn_blocking / save_screenshot_async so Tokio workers are not pinned by std::fs.

Structs§

AnnotationBox
ScreenshotAnnotation
ScreenshotOptions
ScreenshotResult

Functions§

save_screenshot_async
Async-safe screenshot save: decode+write on Tokio blocking pool.
take_screenshot
Captures a screenshot via CDP and optionally overlays numbered annotations that mirror the Node.js screenshot annotate mode.