Enum webview2::WebResourceContext[][src]

#[repr(u32)]
pub enum WebResourceContext {
Show 17 variants All, Document, Stylesheet, Image, Media, Font, Script, XmlHttpRequest, Fetch, TextTrack, EventSource, Websocket, Manifest, SignedExchange, Ping, CspViolationReport, Other,
}
Expand description

Specifies the web resource request contexts.

Variants

All

Specifies all resources.

Document

Specifies a document resource.

Stylesheet

Specifies a CSS resource.

Image

Specifies an image resource.

Media

Specifies another media resource such as a video.

Font

Specifies a font resource.

Script

Specifies a script resource.

XmlHttpRequest

Specifies an XML HTTP request.

Fetch

Specifies a Fetch API communication.

TextTrack

Specifies a TextTrack resource.

EventSource

Specifies an EventSource API communication.

Websocket

Specifies a WebSocket API communication.

Manifest

Specifies a Web App Manifest.

SignedExchange

Specifies a Signed HTTP Exchange.

Ping

Specifies a Ping request.

CspViolationReport

Specifies a CSP Violation Report.

Other

Specifies an other resource.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.