Skip to main content

CdpCommand

Trait CdpCommand 

Source
pub trait CdpCommand: Serialize {
    type Response: for<'de> Deserialize<'de>;

    const METHOD: &'static str;
}

Required Associated Constants§

Source

const METHOD: &'static str

Required Associated Types§

Source

type Response: for<'de> Deserialize<'de>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CdpCommand for CloseParams

Source§

const METHOD: &'static str = "Browser.close"

Source§

type Response = Value

Source§

impl CdpCommand for GetVersionParams

Source§

const METHOD: &'static str = "Browser.getVersion"

Source§

type Response = GetVersionReturns

Source§

impl CdpCommand for ClearDeviceMetricsOverrideParams

Source§

const METHOD: &'static str = "Emulation.clearDeviceMetricsOverride"

Source§

type Response = Value

Source§

impl CdpCommand for SetDeviceMetricsOverrideParams

Source§

const METHOD: &'static str = "Emulation.setDeviceMetricsOverride"

Source§

type Response = Value

Source§

impl CdpCommand for EnableParams

Source§

const METHOD: &'static str = "Network.enable"

Source§

type Response = Value

Source§

impl CdpCommand for AddScriptToEvaluateOnNewDocumentParams

Source§

const METHOD: &'static str = "Page.addScriptToEvaluateOnNewDocument"

Source§

type Response = AddScriptToEvaluateOnNewDocumentReturns

Source§

impl CdpCommand for CaptureScreenshotParams

Source§

const METHOD: &'static str = "Page.captureScreenshot"

Source§

type Response = CaptureScreenshotReturns

Source§

impl CdpCommand for EnableParams

Source§

const METHOD: &'static str = "Page.enable"

Source§

type Response = Value

Source§

impl CdpCommand for GetLayoutMetricsParams

Source§

const METHOD: &'static str = "Page.getLayoutMetrics"

Source§

type Response = GetLayoutMetricsReturns

Source§

impl CdpCommand for GetNavigationHistoryParams

Source§

const METHOD: &'static str = "Page.getNavigationHistory"

Source§

type Response = GetNavigationHistoryReturns

Source§

impl CdpCommand for NavigateParams

Source§

const METHOD: &'static str = "Page.navigate"

Source§

type Response = NavigateReturns

Source§

impl CdpCommand for NavigateToHistoryEntryParams

Source§

const METHOD: &'static str = "Page.navigateToHistoryEntry"

Source§

type Response = Value

Source§

impl CdpCommand for PrintToPDFParams

Source§

const METHOD: &'static str = "Page.printToPDF"

Source§

type Response = PrintToPDFReturns

Source§

impl CdpCommand for ReloadParams

Source§

const METHOD: &'static str = "Page.reload"

Source§

type Response = Value

Source§

impl CdpCommand for AttachToTargetParams

Source§

const METHOD: &'static str = "Target.attachToTarget"

Source§

type Response = AttachToTargetReturns

Source§

impl CdpCommand for CreateTargetParams

Source§

const METHOD: &'static str = "Target.createTarget"

Source§

type Response = CreateTargetReturns

Source§

impl CdpCommand for GetTargetsParams

Source§

const METHOD: &'static str = "Target.getTargets"

Source§

type Response = GetTargetsReturns

Source§

impl CdpCommand for CallFunctionOnParams

Source§

const METHOD: &'static str = "Runtime.callFunctionOn"

Source§

type Response = CallFunctionOnReturns

Source§

impl CdpCommand for EvaluateParams

Source§

const METHOD: &'static str = "Runtime.evaluate"

Source§

type Response = EvaluateReturns

Implementors§