pub struct EmulateNetworkConditionsParams {
pub offline: bool,
pub latency: f64,
pub downloadThroughput: f64,
pub uploadThroughput: f64,
pub connectionType: Option<ConnectionType>,
pub packetLoss: Option<f64>,
pub packetQueueLength: Option<u64>,
pub packetReordering: Option<bool>,
}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.
Fields§
§offline: boolTrue to emulate internet disconnection.
latency: f64Minimum latency from request sent to response headers received (ms).
downloadThroughput: f64Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput: f64Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connectionType: Option<ConnectionType>Connection type if known.
packetLoss: Option<f64>WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
packetQueueLength: Option<u64>WebRTC packet queue length (packet). 0 removes any queue length limitations.
packetReordering: Option<bool>WebRTC packetReordering feature.
Implementations§
Trait Implementations§
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 · 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