pub struct EmulateNetworkConditionsByRuleParams<'a> { /* private fields */ }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.
Implementations§
Source§impl<'a> EmulateNetworkConditionsByRuleParams<'a>
impl<'a> EmulateNetworkConditionsByRuleParams<'a>
pub fn builder( matchedNetworkConditions: Vec<NetworkConditions<'a>>, ) -> EmulateNetworkConditionsByRuleParamsBuilder<'a>
pub fn offline(&self) -> Option<bool>
pub fn emulateOfflineServiceWorker(&self) -> Option<bool>
pub fn matchedNetworkConditions(&self) -> &[NetworkConditions<'a>]
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> CdpCommand<'a> for EmulateNetworkConditionsByRuleParams<'a>
Source§impl<'a> Clone for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Clone for EmulateNetworkConditionsByRuleParams<'a>
Source§fn clone(&self) -> EmulateNetworkConditionsByRuleParams<'a>
fn clone(&self) -> EmulateNetworkConditionsByRuleParams<'a>
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<'a> Debug for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Debug for EmulateNetworkConditionsByRuleParams<'a>
Source§impl<'a> Default for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Default for EmulateNetworkConditionsByRuleParams<'a>
Source§fn default() -> EmulateNetworkConditionsByRuleParams<'a>
fn default() -> EmulateNetworkConditionsByRuleParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for EmulateNetworkConditionsByRuleParams<'a>
impl<'de, 'a> Deserialize<'de> for EmulateNetworkConditionsByRuleParams<'a>
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<'a> Freeze for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> RefUnwindSafe for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Send for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Sync for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> Unpin for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> UnsafeUnpin for EmulateNetworkConditionsByRuleParams<'a>
impl<'a> UnwindSafe for EmulateNetworkConditionsByRuleParams<'a>
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