pub struct EmulateNetworkConditionsByRuleParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> EmulateNetworkConditionsByRuleParamsBuilder<'a>
Sourcepub fn offline(self, offline: bool) -> Self
pub fn offline(self, offline: bool) -> Self
True to emulate internet disconnection. Deprecated, use the offline property in matchedNetworkConditions or emulateOfflineServiceWorker instead.
Sourcepub fn emulate_offline_service_worker(
self,
emulate_offline_service_worker: bool,
) -> Self
pub fn emulate_offline_service_worker( self, emulate_offline_service_worker: bool, ) -> Self
True to emulate offline service worker.
pub fn build(self) -> EmulateNetworkConditionsByRuleParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> RefUnwindSafe for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> Send for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> Sync for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> Unpin for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> UnsafeUnpin for EmulateNetworkConditionsByRuleParamsBuilder<'a>
impl<'a> UnwindSafe for EmulateNetworkConditionsByRuleParamsBuilder<'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