#[non_exhaustive]#[repr(u32)]pub enum cef_resource_type_t {
Show 21 variants
RT_MAIN_FRAME = 0,
RT_SUB_FRAME = 1,
RT_STYLESHEET = 2,
RT_SCRIPT = 3,
RT_IMAGE = 4,
RT_FONT_RESOURCE = 5,
RT_SUB_RESOURCE = 6,
RT_OBJECT = 7,
RT_MEDIA = 8,
RT_WORKER = 9,
RT_SHARED_WORKER = 10,
RT_PREFETCH = 11,
RT_FAVICON = 12,
RT_XHR = 13,
RT_PING = 14,
RT_SERVICE_WORKER = 15,
RT_CSP_REPORT = 16,
RT_PLUGIN_RESOURCE = 17,
RT_NAVIGATION_PRELOAD_MAIN_FRAME = 19,
RT_NAVIGATION_PRELOAD_SUB_FRAME = 20,
RT_NUM_VALUES = 21,
}Expand description
Resource type for a request. These constants match their equivalents in Chromium’s ResourceType and should not be renumbered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RT_MAIN_FRAME = 0
Top level page.
RT_SUB_FRAME = 1
Frame or iframe.
RT_STYLESHEET = 2
CSS stylesheet.
RT_SCRIPT = 3
External script.
RT_IMAGE = 4
Image (jpg/gif/png/etc).
RT_FONT_RESOURCE = 5
Font.
RT_SUB_RESOURCE = 6
Some other subresource. This is the default type if the actual type is unknown.
RT_OBJECT = 7
Object (or embed) tag for a plugin, or a resource that a plugin requested.
RT_MEDIA = 8
Media resource.
RT_WORKER = 9
Main resource of a dedicated worker.
RT_SHARED_WORKER = 10
Main resource of a shared worker.
RT_PREFETCH = 11
Explicitly requested prefetch.
RT_FAVICON = 12
Favicon.
RT_XHR = 13
XMLHttpRequest.
RT_PING = 14
A request for a “
RT_SERVICE_WORKER = 15
Main resource of a service worker.
RT_CSP_REPORT = 16
A report of Content Security Policy violations.
RT_PLUGIN_RESOURCE = 17
A resource that a plugin requested.
RT_NAVIGATION_PRELOAD_MAIN_FRAME = 19
A main-frame service worker navigation preload request.
RT_NAVIGATION_PRELOAD_SUB_FRAME = 20
A sub-frame service worker navigation preload request.
RT_NUM_VALUES = 21
A sub-frame service worker navigation preload request.
Trait Implementations§
Source§impl Clone for cef_resource_type_t
impl Clone for cef_resource_type_t
Source§fn clone(&self) -> cef_resource_type_t
fn clone(&self) -> cef_resource_type_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more