pub enum ResourceType {
Show 20 variants
Document,
Stylesheet,
Image,
Media,
Font,
Script,
TextTrack,
Xhr,
Fetch,
Prefetch,
EventSource,
WebSocket,
Manifest,
SignedExchange,
Ping,
CspViolationReport,
Preflight,
FedCm,
Other,
Unrecognized(String),
}Expand description
Resource type as it was perceived by the rendering engine.
Variants§
Document
Document
Stylesheet
Stylesheet
Image
Image
Media
Media
Font
Font
Script
Script
TextTrack
TextTrack
Xhr
XHR
Fetch
Fetch
Prefetch
Prefetch
EventSource
EventSource
WebSocket
WebSocket
Manifest
Manifest
SignedExchange
SignedExchange
Ping
Ping
CspViolationReport
CSPViolationReport
Preflight
Preflight
FedCm
FedCM
Other
Other
Unrecognized(String)
A value this vendored schema does not list. Chrome adds values ahead of the published protocol, so an unrecognised one is kept as it arrived rather than failing the payload it came in.
Trait Implementations§
Source§impl Clone for ResourceType
impl Clone for ResourceType
Source§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl<'de> Deserialize<'de> for ResourceType
impl<'de> Deserialize<'de> for ResourceType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResourceType
Source§impl Hash for ResourceType
impl Hash for ResourceType
Source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§impl Serialize for ResourceType
impl Serialize for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Forget for ResourceType
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