Struct chromiumoxide::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>,
}

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

impl EmulateNetworkConditionsParams[src]

pub fn new(
    offline: impl Into<bool>,
    latency: impl Into<f64>,
    download_throughput: impl Into<f64>,
    upload_throughput: impl Into<f64>
) -> EmulateNetworkConditionsParams
[src]

impl EmulateNetworkConditionsParams[src]

impl EmulateNetworkConditionsParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for EmulateNetworkConditionsParams[src]

impl Command for EmulateNetworkConditionsParams[src]

type Response = EmulateNetworkConditionsReturns

The type of the response this request triggers on the chromium server

impl Debug for EmulateNetworkConditionsParams[src]

impl<'de> Deserialize<'de> for EmulateNetworkConditionsParams[src]

impl Method for EmulateNetworkConditionsParams[src]

impl MethodType for EmulateNetworkConditionsParams[src]

impl PartialEq<EmulateNetworkConditionsParams> for EmulateNetworkConditionsParams[src]

impl Serialize for EmulateNetworkConditionsParams[src]

impl StructuralPartialEq for EmulateNetworkConditionsParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,