pub enum ResourceType {
Show 20 variants
MainFrame = 0,
SubFrame = 1,
StyleSheet = 2,
Script = 3,
Image = 4,
FontResource = 5,
SubResource = 6,
Object = 7,
Media = 8,
Worker = 9,
SharedWorker = 10,
Prefetch = 11,
Favicon = 12,
Xhr = 13,
Ping = 14,
ServiceWorker = 15,
CspReport = 16,
PluginResource = 17,
NavigationPreloadMainFrame = 19,
NavigationPreloadSubFrame = 20,
}Variants§
MainFrame = 0
SubFrame = 1
StyleSheet = 2
Script = 3
Image = 4
FontResource = 5
SubResource = 6
Object = 7
Media = 8
Worker = 9
Prefetch = 11
Favicon = 12
Xhr = 13
Ping = 14
ServiceWorker = 15
CspReport = 16
PluginResource = 17
Implementations§
Source§impl ResourceType
impl ResourceType
pub fn try_from_raw(attr: ArkWeb_ResourceType) -> Option<Self>
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 moreSource§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl From<ResourceType> for ArkWeb_ResourceType
impl From<ResourceType> for ArkWeb_ResourceType
Source§fn from(attr: ResourceType) -> Self
fn from(attr: ResourceType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ResourceType
impl From<u32> for ResourceType
Source§fn from(attr: ArkWeb_ResourceType) -> Self
fn from(attr: ArkWeb_ResourceType) -> Self
Converts to this type from the input type.
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 ==.impl Copy for ResourceType
impl Eq 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