pub enum ResourceType {
Show 17 variants
Document,
Stylesheet,
Image,
Media,
Font,
Script,
TextTrack,
XHR,
Fetch,
EventSource,
WebSocket,
Manifest,
SignedExchange,
Ping,
CSPViolationReport,
Preflight,
Other,
}Expand description
Resource type classification for an intercepted request.
Mirrors Chrome’s Network.ResourceType enum used by Fetch.RequestPattern
and the resourceType field on Fetch.requestPaused events.
Variants§
Document
Stylesheet
Image
Media
Font
Script
TextTrack
XHR
Fetch
EventSource
WebSocket
Manifest
SignedExchange
Ping
CSPViolationReport
Preflight
Other
Implementations§
Source§impl ResourceType
impl ResourceType
Sourcepub fn as_cdp_str(&self) -> &'static str
pub fn as_cdp_str(&self) -> &'static str
CDP wire-string for this resource type, matching the
Network.ResourceType enum names exactly (e.g. "XHR", "Stylesheet").
Trait Implementations§
Source§impl Clone for ResourceType
impl Clone for ResourceType
Source§fn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceType
Source§impl Debug for ResourceType
impl Debug for ResourceType
impl Eq for ResourceType
Source§impl Hash for ResourceType
impl Hash for ResourceType
Source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§fn eq(&self, other: &ResourceType) -> bool
fn eq(&self, other: &ResourceType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceType
impl Serialize for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnsafeUnpin for ResourceType
impl UnwindSafe for ResourceType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more