pub struct EmulateNetworkConditionsByRuleBuilder { /* private fields */ }Expand description
Builder for EmulateNetworkConditionsByRule.
Implementations§
Source§impl EmulateNetworkConditionsByRuleBuilder
impl EmulateNetworkConditionsByRuleBuilder
Sourcepub fn offline<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn offline<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
True to emulate internet disconnection.
Sourcepub fn matched_network_conditions<VALUE: Into<Vec<NetworkConditions>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn matched_network_conditions<VALUE: Into<Vec<NetworkConditions>>>( &mut self, value: VALUE, ) -> &mut Self
Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.
Sourcepub fn build(
&self,
) -> Result<EmulateNetworkConditionsByRule, EmulateNetworkConditionsByRuleBuilderError>
pub fn build( &self, ) -> Result<EmulateNetworkConditionsByRule, EmulateNetworkConditionsByRuleBuilderError>
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsByRuleBuilder
impl Clone for EmulateNetworkConditionsByRuleBuilder
Source§fn clone(&self) -> EmulateNetworkConditionsByRuleBuilder
fn clone(&self) -> EmulateNetworkConditionsByRuleBuilder
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 moreAuto Trait Implementations§
impl Freeze for EmulateNetworkConditionsByRuleBuilder
impl RefUnwindSafe for EmulateNetworkConditionsByRuleBuilder
impl Send for EmulateNetworkConditionsByRuleBuilder
impl Sync for EmulateNetworkConditionsByRuleBuilder
impl Unpin for EmulateNetworkConditionsByRuleBuilder
impl UnsafeUnpin for EmulateNetworkConditionsByRuleBuilder
impl UnwindSafe for EmulateNetworkConditionsByRuleBuilder
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