pub struct EmulateNetworkConditionsParams { /* private fields */ }Expand description
Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
Implementations§
Source§impl EmulateNetworkConditionsParams
impl EmulateNetworkConditionsParams
pub fn builder( offline: bool, latency: f64, downloadThroughput: f64, uploadThroughput: f64, ) -> EmulateNetworkConditionsParamsBuilder
pub fn offline(&self) -> bool
pub fn latency(&self) -> f64
pub fn downloadThroughput(&self) -> f64
pub fn uploadThroughput(&self) -> f64
pub fn connectionType(&self) -> Option<&ConnectionType>
pub fn packetLoss(&self) -> Option<f64>
pub fn packetQueueLength(&self) -> Option<u64>
pub fn packetReordering(&self) -> Option<bool>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for EmulateNetworkConditionsParams
impl<'a> CdpCommand<'a> for EmulateNetworkConditionsParams
Source§impl Clone for EmulateNetworkConditionsParams
impl Clone for EmulateNetworkConditionsParams
Source§fn clone(&self) -> EmulateNetworkConditionsParams
fn clone(&self) -> EmulateNetworkConditionsParams
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 Default for EmulateNetworkConditionsParams
impl Default for EmulateNetworkConditionsParams
Source§fn default() -> EmulateNetworkConditionsParams
fn default() -> EmulateNetworkConditionsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmulateNetworkConditionsParams
impl<'de> Deserialize<'de> for EmulateNetworkConditionsParams
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 Freeze for EmulateNetworkConditionsParams
impl RefUnwindSafe for EmulateNetworkConditionsParams
impl Send for EmulateNetworkConditionsParams
impl Sync for EmulateNetworkConditionsParams
impl Unpin for EmulateNetworkConditionsParams
impl UnsafeUnpin for EmulateNetworkConditionsParams
impl UnwindSafe for EmulateNetworkConditionsParams
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