pub enum NetworkCommand {
AddIntercept {
intercept_requests: bool,
intercept_request_headers: bool,
intercept_request_body: bool,
intercept_responses: bool,
intercept_response_body: bool,
},
RemoveIntercept {
intercept_id: InterceptId,
},
SetBlockRules {
patterns: Vec<String>,
},
ClearBlockRules,
}Expand description
Network module commands for request interception.
Variants§
AddIntercept
Add network intercept.
Fields
RemoveIntercept
Remove network intercept.
Fields
§
intercept_id: InterceptIdIntercept ID.
SetBlockRules
Set URL block rules.
ClearBlockRules
Clear all block rules.
Trait Implementations§
Source§impl Clone for NetworkCommand
impl Clone for NetworkCommand
Source§fn clone(&self) -> NetworkCommand
fn clone(&self) -> NetworkCommand
Returns a duplicate 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 NetworkCommand
impl Debug for NetworkCommand
Source§impl<'de> Deserialize<'de> for NetworkCommand
impl<'de> Deserialize<'de> for NetworkCommand
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
Auto Trait Implementations§
impl Freeze for NetworkCommand
impl RefUnwindSafe for NetworkCommand
impl Send for NetworkCommand
impl Sync for NetworkCommand
impl Unpin for NetworkCommand
impl UnwindSafe for NetworkCommand
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