Skip to main content

Crate playhard_cdp

Crate playhard_cdp 

Source
Expand description

Typed Chrome DevTools Protocol helpers for Playhard.

This crate intentionally owns the protocol shape and typed command surface, while leaving the actual transport boundary abstract. A future playhard-transport crate can implement the transport trait without changing the public CDP API.

Structs§

BrowserGetVersionParams
Typed params for Browser.getVersion.
BrowserGetVersionResult
Typed result for Browser.getVersion.
BrowserVersion
Browser version payload.
CdpClient
Async typed CDP client.
CdpRequest
CDP request envelope.
CdpResponse
CDP response envelope.
CdpResponseError
CDP response error payload.
FetchContinueRequestParams
Typed params for Fetch.continueRequest.
FetchEnableParams
Typed params for Fetch.enable.
FetchFailRequestParams
Typed params for Fetch.failRequest.
FetchFulfillRequestParams
Typed params for Fetch.fulfillRequest.
FetchGetResponseBodyParams
Typed params for Fetch.getResponseBody.
FetchGetResponseBodyResult
Typed result for Fetch.getResponseBody.
FetchHeaderEntry
Typed fetch response header entry.
FetchPattern
Typed fetch request pattern.
InputDispatchKeyEventParams
Typed params for Input.dispatchKeyEvent.
InputInsertTextParams
Typed params for Input.insertText.
NetworkEnableParams
Typed params for Network.enable.
PageCaptureScreenshotParams
Typed params for Page.captureScreenshot.
PageCaptureScreenshotResult
Typed result for Page.captureScreenshot.
PageCreateIsolatedWorldParams
Typed params for Page.createIsolatedWorld.
PageCreateIsolatedWorldResult
Typed result for Page.createIsolatedWorld.
PageEnableParams
Typed params for Page.enable.
PageFrame
Page frame metadata.
PageFrameTree
Recursive frame tree payload.
PageGetFrameTreeParams
Typed params for Page.getFrameTree.
PageGetFrameTreeResult
Typed result for Page.getFrameTree.
PageNavigateParams
Typed params for Page.navigate.
PageNavigateResult
Typed result for Page.navigate.
PageSetLifecycleEventsEnabledParams
Typed params for Page.setLifecycleEventsEnabled.
RemoteObject
Remote object returned by Runtime.evaluate.
RuntimeCallArgument
Call argument for Runtime.callFunctionOn.
RuntimeCallFunctionOnParams
Typed params for Runtime.callFunctionOn.
RuntimeCallFunctionOnResult
Typed result for Runtime.callFunctionOn.
RuntimeEnableParams
Typed params for Runtime.enable.
RuntimeEvaluateParams
Typed params for Runtime.evaluate.
RuntimeEvaluateResult
Typed result for Runtime.evaluate.
RuntimeReleaseObjectParams
Typed params for Runtime.releaseObject.
TargetAttachToTargetParams
Typed params for Target.attachToTarget.
TargetAttachToTargetResult
Typed result for Target.attachToTarget.
TargetCreateTargetParams
Typed params for Target.createTarget.
TargetCreateTargetResult
Typed result for Target.createTarget.
TargetSetAutoAttachParams
Typed params for Target.setAutoAttach.
TargetSetDiscoverTargetsParams
Typed params for Target.setDiscoverTargets.

Enums§

CdpError
Errors produced by the typed CDP layer.

Traits§

CdpTransport
Abstract transport boundary for the typed CDP client.
Command
Typed command interface.

Functions§

protocol_spec
Returns the embedded upstream protocol specification bundled with Playhard.

Type Aliases§

CdpValue
Generic CDP JSON value.
ResponseBody
Raw response body returned by screenshot and similar APIs.
Result
Result alias for this crate.