Struct chromiumoxide_cdp::cdp::browser_protocol::network::EmulateNetworkConditionsParams [−][src]
pub struct EmulateNetworkConditionsParams { pub offline: bool, pub latency: f64, pub download_throughput: f64, pub upload_throughput: f64, pub connection_type: Option<ConnectionType>, }
Expand description
Activates emulation of network conditions. emulateNetworkConditions
Fields
offline: bool
True to emulate internet disconnection.
latency: f64
Minimum latency from request sent to response headers received (ms).
download_throughput: f64
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
upload_throughput: f64
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connection_type: Option<ConnectionType>
Connection type if known.
Implementations
Trait Implementations
The type of the response this request triggers on the chromium server
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
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for EmulateNetworkConditionsParams
impl Sync for EmulateNetworkConditionsParams
impl Unpin for EmulateNetworkConditionsParams
impl UnwindSafe for EmulateNetworkConditionsParams
Blanket Implementations
Mutably borrows from an owned value. Read more