Skip to main content

capture

Function capture 

Source
pub async fn capture(
    request: CaptureRequest,
    cancel: &CaptureCancellation,
) -> Result<CaptureReport>
Expand description

Capture request. See the module docs for what is returned on each ending.

Returns Err only when the request is invalid or the output directory cannot be created, before any browser launches. A browser that cannot launch yields a CaptureStatus::Failed report with cleanup.launched == false.