pub struct EmulateNetworkConditionsByRuleParamsBuilder { /* private fields */ }Implementations§
Source§impl EmulateNetworkConditionsByRuleParamsBuilder
impl EmulateNetworkConditionsByRuleParamsBuilder
pub fn offline( self, offline: impl Into<bool>, ) -> EmulateNetworkConditionsByRuleParamsBuilder
pub fn matched_network_condition( self, matched_network_condition: impl Into<NetworkConditions>, ) -> EmulateNetworkConditionsByRuleParamsBuilder
pub fn matched_network_conditions<I, S>( self, matched_network_conditions: I, ) -> EmulateNetworkConditionsByRuleParamsBuilder
pub fn build(self) -> Result<EmulateNetworkConditionsByRuleParams, String>
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsByRuleParamsBuilder
impl Clone for EmulateNetworkConditionsByRuleParamsBuilder
Source§fn clone(&self) -> EmulateNetworkConditionsByRuleParamsBuilder
fn clone(&self) -> EmulateNetworkConditionsByRuleParamsBuilder
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 EmulateNetworkConditionsByRuleParamsBuilder
impl Default for EmulateNetworkConditionsByRuleParamsBuilder
Source§fn default() -> EmulateNetworkConditionsByRuleParamsBuilder
fn default() -> EmulateNetworkConditionsByRuleParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmulateNetworkConditionsByRuleParamsBuilder
impl RefUnwindSafe for EmulateNetworkConditionsByRuleParamsBuilder
impl Send for EmulateNetworkConditionsByRuleParamsBuilder
impl Sync for EmulateNetworkConditionsByRuleParamsBuilder
impl Unpin for EmulateNetworkConditionsByRuleParamsBuilder
impl UnwindSafe for EmulateNetworkConditionsByRuleParamsBuilder
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