Enum adblock::request::RequestType
source · pub enum RequestType {
Show 17 variants
Beacon,
Csp,
Document,
Dtd,
Fetch,
Font,
Image,
Media,
Object,
Other,
Ping,
Script,
Stylesheet,
Subdocument,
Websocket,
Xlst,
Xmlhttprequest,
}
Expand description
The type of resource requested from the URL endpoint.
Variants§
Beacon
Csp
Document
Dtd
Fetch
Font
Image
Media
Object
Other
Ping
Script
Stylesheet
Subdocument
Websocket
Xlst
Xmlhttprequest
Trait Implementations§
source§impl Clone for RequestType
impl Clone for RequestType
source§fn clone(&self) -> RequestType
fn clone(&self) -> RequestType
Returns a copy of the value. Read more
1.0.0 · 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 RequestType
impl Debug for RequestType
source§impl From<&RequestType> for NetworkFilterMask
impl From<&RequestType> for NetworkFilterMask
source§fn from(request_type: &RequestType) -> NetworkFilterMask
fn from(request_type: &RequestType) -> NetworkFilterMask
Converts to this type from the input type.
source§impl PartialEq for RequestType
impl PartialEq for RequestType
source§fn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Freeze for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnwindSafe for RequestType
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