pub struct EmulateNetworkConditionsByRule {
pub method: EmulateNetworkConditionsByRuleMethod,
pub params: EmulateNetworkConditionsByRuleParams,
}Expand description
Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to
explicitly modify navigator behavior.
emulateNetworkConditionsByRule
Fields§
§method: EmulateNetworkConditionsByRuleMethod§params: EmulateNetworkConditionsByRuleParamsImplementations§
Source§impl EmulateNetworkConditionsByRule
impl EmulateNetworkConditionsByRule
pub fn builder() -> EmulateNetworkConditionsByRuleBuilder
Source§impl EmulateNetworkConditionsByRule
impl EmulateNetworkConditionsByRule
pub const IDENTIFIER: &'static str = "Network.emulateNetworkConditionsByRule"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsByRule
impl Clone for EmulateNetworkConditionsByRule
Source§fn clone(&self) -> EmulateNetworkConditionsByRule
fn clone(&self) -> EmulateNetworkConditionsByRule
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 CommandResult for EmulateNetworkConditionsByRule
impl CommandResult for EmulateNetworkConditionsByRule
type Result = EmulateNetworkConditionsByRuleResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for EmulateNetworkConditionsByRule
impl<'de> Deserialize<'de> for EmulateNetworkConditionsByRule
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
Source§impl From<EmulateNetworkConditionsByRule> for BrowserProtocolCommands
impl From<EmulateNetworkConditionsByRule> for BrowserProtocolCommands
Source§fn from(v: EmulateNetworkConditionsByRule) -> Self
fn from(v: EmulateNetworkConditionsByRule) -> Self
Converts to this type from the input type.
Source§impl From<EmulateNetworkConditionsByRule> for Command
impl From<EmulateNetworkConditionsByRule> for Command
Source§fn from(v: EmulateNetworkConditionsByRule) -> Self
fn from(v: EmulateNetworkConditionsByRule) -> Self
Converts to this type from the input type.
Source§impl From<EmulateNetworkConditionsByRule> for NetworkCommands
impl From<EmulateNetworkConditionsByRule> for NetworkCommands
Source§fn from(v: EmulateNetworkConditionsByRule) -> Self
fn from(v: EmulateNetworkConditionsByRule) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmulateNetworkConditionsByRule
impl PartialEq for EmulateNetworkConditionsByRule
Source§fn eq(&self, other: &EmulateNetworkConditionsByRule) -> bool
fn eq(&self, other: &EmulateNetworkConditionsByRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for EmulateNetworkConditionsByRule
impl TryFrom<BrowserProtocolCommands> for EmulateNetworkConditionsByRule
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <EmulateNetworkConditionsByRule as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <EmulateNetworkConditionsByRule as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommands> for EmulateNetworkConditionsByRule
impl TryFrom<NetworkCommands> for EmulateNetworkConditionsByRule
Source§type Error = NetworkCommands
type Error = NetworkCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommands,
) -> Result<Self, <EmulateNetworkConditionsByRule as TryFrom<NetworkCommands>>::Error>
fn try_from( e: NetworkCommands, ) -> Result<Self, <EmulateNetworkConditionsByRule as TryFrom<NetworkCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for EmulateNetworkConditionsByRule
Auto Trait Implementations§
impl Freeze for EmulateNetworkConditionsByRule
impl RefUnwindSafe for EmulateNetworkConditionsByRule
impl Send for EmulateNetworkConditionsByRule
impl Sync for EmulateNetworkConditionsByRule
impl Unpin for EmulateNetworkConditionsByRule
impl UnsafeUnpin for EmulateNetworkConditionsByRule
impl UnwindSafe for EmulateNetworkConditionsByRule
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