pub struct EmulateNetworkConditionsByRuleBuilder { /* private fields */ }Implementations§
Source§impl EmulateNetworkConditionsByRuleBuilder
impl EmulateNetworkConditionsByRuleBuilder
pub fn offline(self, offline: impl Into<bool>) -> Self
pub fn matched_network_condition( self, matched_network_condition: impl Into<NetworkConditions>, ) -> Self
pub fn matched_network_conditions<I, S>( self, matched_network_conditions: I, ) -> Self
pub fn build(self) -> Result<EmulateNetworkConditionsByRule, String>
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 moreSource§impl Default for EmulateNetworkConditionsByRuleBuilder
impl Default for EmulateNetworkConditionsByRuleBuilder
Source§fn default() -> EmulateNetworkConditionsByRuleBuilder
fn default() -> EmulateNetworkConditionsByRuleBuilder
Returns the “default value” for a type. Read more
Auto 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