Struct chrome_remote_interface_model::network::EmulateNetworkConditionsCommandBuilder[][src]

pub struct EmulateNetworkConditionsCommandBuilder { /* fields omitted */ }

Implementations

impl EmulateNetworkConditionsCommandBuilder[src]

pub fn offline(&mut self, v: bool) -> &mut Self[src]

True to emulate internet disconnection.

pub fn latency(&mut self, v: f64) -> &mut Self[src]

Minimum latency from request sent to response headers received (ms).

pub fn download_throughput(&mut self, v: f64) -> &mut Self[src]

Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.

pub fn upload_throughput(&mut self, v: f64) -> &mut Self[src]

Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.

pub fn connection_type(&mut self, v: ConnectionType) -> &mut Self[src]

Connection type if known.

pub fn build(&mut self) -> Result<EmulateNetworkConditionsCommand, &'static str>[src]

Trait Implementations

impl Clone for EmulateNetworkConditionsCommandBuilder[src]

impl Debug for EmulateNetworkConditionsCommandBuilder[src]

impl Default for EmulateNetworkConditionsCommandBuilder[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> From<T> for T[src]

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

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.